Hi guys,
I just noticed, that generator created different relations, like this:
public function getAbrechnungsweg() {
return $this->hasOne(\common\modules\lookup\models\LAbrechnungsweg::className(), ['id' => 'id_abrechnungsweg']);
}
public function getEMatchingbegriffs() {
return $this->hasMany(\common\modules\erweiterung\models\EMatchingbegriff::className(), ['id_bewerber' => 'id']);
}
Both are 1:n cardinality. So, I ask me, why generator didn’t set hasmany()-relation for both?
As I assume hasone() should be used for 1:1 cardinality and hasmany() for 1:n cardinality
Is this a bug of mootensai-generator or do I wrong?