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