FIX [repository][center] adjust center repository to find all active entities

This commit is contained in:
Julie Lenaerts 2023-09-06 16:05:59 +02:00
parent b256c3176e
commit 03baee4286

View File

@ -29,9 +29,12 @@ final class CenterRepository implements CenterRepositoryInterface
return $this->repository->find($id, $lockMode, $lockVersion); return $this->repository->find($id, $lockMode, $lockVersion);
} }
/**
* @return Center[]
*/
public function findActive(): array public function findActive(): array
{ {
return $this->findAll(); return $this->repository->findBy(['isActive' => true], ['name' => 'ASC']);
} }
/** /**