Category: repository

Symfony 5 pb with Repository

I have the following error: DefinitionErrorExceptionPass.php line 54: Cannot autowire service “AppRepositoryEmployeeRepository”: argument “$entityClass” of method “DoctrineBundleDoctrineBundleRepositoryServiceEntityRepository::__construct()” has no type-hint, you should configure its value explicitly. My classes: <?php namespace AppEntity; use DoctrineORMMapping as ORM; /** * @ORMEntity(repositoryClass=”AppRepositoryEmployeeRepository”) */ class…