The identifier id is missing for a query of AppEntityUser

  doctrine, doctrine-orm, php, symfony

when i try to delete something with my Easy Admin Crud on symfony, like for example an article i got this error (everything else is working i can edit / create):

The identifier id is missing for a query of AppEntityUser

MissingIdentifierField
in vendor/doctrine/orm/lib/Doctrine/ORM/Exception/MissingIdentifierField.php (line 15)
in vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php :: fromFieldAndClass (line 443)
in var/cache/dev/ContainerX180XNO/srcApp_KernelDevDebugContainer.php -> find (line 7141)
in vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php -> find (line 174)
in vendor/easycorp/easyadmin-bundle/src/Controller/AbstractCrudController.php -> find (line 385)
in vendor/symfony/http-kernel/HttpKernel.php -> batchDelete (line 158)
in vendor/symfony/http-kernel/HttpKernel.php -> handleRaw (line 80)
in vendor/symfony/http-kernel/Kernel.php -> handle (line 201)
Kernel->handle(object(Request))
in public/index.php (line 25)```

Source: Ask PHP

LEAVE A COMMENT