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