예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOutcomeTransaction()
 {
     return $this->hasOne(Transaction::className(), ['id' => 'outcome_transaction_id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTransactions()
 {
     return $this->hasMany(Transaction::className(), ['user_id' => 'id']);
 }