WIP: switch from ACLAware to normal repository usage

This commit is contained in:
2025-09-08 08:33:36 +02:00
parent 4ffd7034d0
commit 675e8450fc
6 changed files with 18 additions and 106 deletions

View File

@@ -16,9 +16,9 @@ use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use Doctrine\Persistence\ObjectRepository;
class InviteRepository implements ObjectRepository
readonly class InviteRepository implements ObjectRepository
{
private readonly EntityRepository $entityRepository;
private EntityRepository $entityRepository;
public function __construct(EntityManagerInterface $em)
{
@@ -41,7 +41,7 @@ class InviteRepository implements ObjectRepository
/**
* @return array|Invite[]
*/
public function findBy(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null)
public function findBy(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array
{
return $this->entityRepository->findBy($criteria, $orderBy, $limit, $offset);
}