where(["and", ["emergency_response_id" => $emergencyResponseId], [">", "rules_point_id", 0]])->all(); } public static function add(EmergencyResponse $EmergencyResponse): void { RulesPointsRelationshipService::addEmergencyResponseRelationship($EmergencyResponse); } public static function update(EmergencyResponse $EmergencyResponse): void { RulesPointsRelationshipService::updateEmergencyResponseRelationship($EmergencyResponse); } public static function deleteByEmergencyResponseId($EmergencyResponseId) { EmergencyResponseRelateToRulesPoints::deleteAll(["emergency_response_id" => $EmergencyResponseId]); } }