Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUser()
 {
     return $this->hasOne(User::className(), ['id' => 'user_id']);
 }
Esempio n. 2
0
File: Payment.php Progetto: apuc/api
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCash()
 {
     return $this->hasOne(User::className(), ['id' => 'cash_id']);
 }