where('is_active', 1)->findAll(); } /** * Get miscellaneous records for a specific plan */ public function getMiscellaneousByPlan($planId) { return $this->where('plan_id', $planId)->findAll(); } }