/** * @return \yii\db\ActiveQuery */ public function getRefSexes() { return $this->hasMany(RefSex::className(), ['status_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getSex() { return $this->hasOne(RefSex::className(), ['id' => 'sex_id']); }