public function getCashbooks() { return $this->hasMany(Cashbook::className(), ['category_id' => 'id_category']); }
/** * @return \yii\db\ActiveQuery */ public function getCashbooks() { return $this->hasMany(Cashbook::className(), ['type_id' => 'id_type']); }