/** * @return \yii\db\ActiveQuery */ public function getJournals() { return $this->hasMany(Journal::className(), ['account_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getJournals() { return $this->hasMany(Journal::className(), ['transaction_id' => 'id'])->where("isdel=0"); }