Пример #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPerson()
 {
     return $this->hasOne(Person::className(), ['third_id' => 'id']);
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPeople()
 {
     return $this->hasMany(Person::className(), ['gender_id' => 'id']);
 }