Correct repository and normalizer

This commit is contained in:
2024-10-01 20:02:58 +02:00
parent 052e09cf64
commit 7520d746e8
2 changed files with 12 additions and 2 deletions

View File

@@ -2,6 +2,16 @@
namespace Chill\MainBundle\Repository;
use Chill\MainBundle\Entity\Gender;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\ORM\EntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use Doctrine\Persistence\ObjectRepository;
use UnexpectedValueException;
class GenderRepository extends EntityRepository {}
class GenderRepository extends ServiceEntityRepository {
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Gender::class);
}
}