<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 | ||
|---|---|---|
public
|
__construct(ManagerRegistry $registry, class-string<T> $entityClass)
|
# |
| Properties inherited from Doctrine\ORM\EntityRepository |
|---|
$inflector |