Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getContacts()
 {
     return $this->hasMany(ClientContact::className(), ['client_id' => 'id']);
 }
Esempio n. 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getClientContact()
 {
     return $this->hasOne(ClientContact::className(), ['id' => 'client_contact_id']);
 }