コード例 #1
0
ファイル: AppApplicant.php プロジェクト: ailingsen/betterdebt
 public function getClient()
 {
     return $this->hasOne(Client::className(), ['id_user' => 'id_user']);
 }
コード例 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getClients()
 {
     return $this->hasMany(Client::className(), ['category_id' => 'id']);
 }
コード例 #3
0
ファイル: Contact.php プロジェクト: jslight/helpdesk
 /**
  * @return ClientQuery
  */
 public function getClient()
 {
     return $this->hasOne(Client::className(), ['id' => 'client_id'])->inverseOf('contacts');
 }
コード例 #4
0
ファイル: ClientAttachment.php プロジェクト: allhaze/renault
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getClient()
 {
     return $this->hasOne(Client::className(), ['id' => 'client_id']);
 }