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