*/ class EventBudgetKindRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, EventBudgetKind::class); } public function findByActive(): array { return $this->createQueryBuilder('e') ->select('e') ->where('e.active = True') ->getQuery() ->getResult(); } public function findByType(string $type): array { return $this->createQueryBuilder('e') ->select('e') ->where('e.type = :type') ->setParameter('type', $type) ->getQuery() ->getResult(); } }