diff --git a/src/Bundle/ChillMainBundle/Repository/GroupCenterRepository.php b/src/Bundle/ChillMainBundle/Repository/GroupCenterRepository.php index d0f5d8561..bbd92aa4e 100644 --- a/src/Bundle/ChillMainBundle/Repository/GroupCenterRepository.php +++ b/src/Bundle/ChillMainBundle/Repository/GroupCenterRepository.php @@ -14,9 +14,8 @@ namespace Chill\MainBundle\Repository; use Chill\MainBundle\Entity\GroupCenter; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityRepository; -use Doctrine\Persistence\ObjectRepository; -final readonly class GroupCenterRepository implements ObjectRepository +final readonly class GroupCenterRepository implements GroupCenterRepositoryInterface { private EntityRepository $repository; diff --git a/src/Bundle/ChillMainBundle/Repository/GroupCenterRepositoryInterface.php b/src/Bundle/ChillMainBundle/Repository/GroupCenterRepositoryInterface.php new file mode 100644 index 000000000..cd13b8cbe --- /dev/null +++ b/src/Bundle/ChillMainBundle/Repository/GroupCenterRepositoryInterface.php @@ -0,0 +1,40 @@ + + */ +interface GroupCenterRepositoryInterface extends ObjectRepository +{ + public function find($id, $lockMode = null, $lockVersion = null): ?GroupCenter; + + /** + * @return GroupCenter[] + */ + public function findAll(): array; + + /** + * @param mixed|null $limit + * @param mixed|null $offset + * + * @return GroupCenter[] + */ + public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null): array; + + public function findOneBy(array $criteria, ?array $orderBy = null): ?GroupCenter; + + public function getClassName(); +}