Here are some things to try when things aren’t working.
This cryptic error is thrown by doctrine when an interface hasn’t been resolved to a mappable entity.
For example, if there is no entity registered that implements Symfony’s
UserInterface, but there are entities registered that have an association to that interface, you’ll see the following:
Class 'Symfony\Component\Security\Core\User\UserInterface' does not exist
You’ll need to define a entity in
perform_base: doctrine: resolve: Symfony\Component\Security\Core\User\UserInterface: App\Entity\User
Note that the user bundle does this automatically for its User entity.
See Implementing interfaces for more information.
Check the container tab in the logger profiler panel, looking especially for logs from compiler passes in the
They will often log why a service was removed or manipulated, usually because of a missing composer package.