/** * @return \yii\db\ActiveQuery */ public function getBreeds() { return $this->hasMany(Breed::className(), ['common_status_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getBreed() { return $this->hasOne(Breed::className(), ['id' => 'breed_id']); }