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