where('policy_id', $policyId)->findAll(); } /** * Get active policy details */ public function getActivePolicyDetails($policyId) { return $this->where(['policy_id' => $policyId, 'is_active' => 1])->findAll(); } }