/** * @return \yii\db\ActiveQuery */ public function getPhonePerson() { return $this->hasOne(PhonesPerson::className(), ['phone_person_id' => 'phone_person_id']); }
/** * @return \yii\db\ActiveQuery */ public function getPhonesPeople() { return $this->hasMany(PhonesPerson::className(), ['person_id' => 'person_id']); }