/** * @return \yii\db\ActiveQuery */ public function getIncoming() { return $this->hasOne(TransactionIncoming::className(), ['id' => 'incoming_id']); }
/** * @return \yii\db\ActiveQuery */ public function getTransactionIncomings() { return $this->hasMany(TransactionIncoming::className(), ['transaction_id' => 'id']); }