public function getCashbooks() { return $this->hasMany(Cashbook::className(), ['category_id' => 'id_category']); }