andWhere(':newsletter MEMBER OF .newsletters') ->setParameter('newsletter', $newsletter->getId()); } public function filterLikeRole(string $role): self { return $this ->andWhere('.roles LIKE :roles') ->setParameter('roles', '%"' . $role . '"%'); } public function filterLikeTicketTypeNotification(string $ticketType): self { return $this ->andWhere('.ticketTypesNotification LIKE :ticketType') ->setParameter('ticketType', '%"' . $ticketType . '"%'); } }