Class Doctrine\Bundle\DoctrineBundle\Repository\LazyServiceEntityRepository

<T is object>

extends EntityRepository<T>
implements ServiceEntityRepositoryInterface
uses LazyGhostTrait

Optional EntityRepository base class with a simplified constructor (for autowiring).

To use in your class, inject the "registry" service and call the parent constructor. For example:

class YourEntityRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, YourEntity::class); } }

Methods
Methods inherited from Doctrine\ORM\EntityRepository
createQueryBuilder(), createResultSetMappingBuilder(), createNamedQuery(), createNativeNamedQuery(), clear(), find(), findAll(), findBy(), findOneBy(), count(), __call(), getEntityName(), getClassName(), getEntityManager(), getClassMetadata(), matching(),
Methods used from Symfony\Component\VarExporter\LazyGhostTrait
createLazyGhost(), isLazyObjectInitialized(), initializeLazyObject(), resetLazyObject(), __get(), __set(), __isset(), __unset(), __clone(), __serialize(), __destruct(), setLazyObjectAsInitialized()
Properties inherited from Doctrine\ORM\EntityRepository
$inflector