예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPhonePerson()
 {
     return $this->hasOne(PhonesPerson::className(), ['phone_person_id' => 'phone_person_id']);
 }
예제 #2
0
파일: Persons.php 프로젝트: KCala/BDcrm
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPhonesPeople()
 {
     return $this->hasMany(PhonesPerson::className(), ['person_id' => 'person_id']);
 }