You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I add a custom action to the NEW page, I'm getting the entity with "id = 0" does not exist in the database error when trying to access it.
The "App\Entity\Foo" entity with "id = 0" does not exist in the database. The entity may have been deleted by mistake or by a "cascade={"remove"}" operation executed by Doctrine.
Stack:
in vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php (line 149)
in vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php -> getEntityInstance (line 111)
in vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php -> doCreate (line 70)
in vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php -> create (line 244)
in vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php -> getEntityDto (line 62)
in vendor/easycorp/easyadmin-bundle/src/EventListener/AdminRouterSubscriber.php -> create (line 78)
in vendor/symfony/event-dispatcher/Debug/WrappedListener.php -> onKernelRequest (line 116)
in vendor/symfony/event-dispatcher/EventDispatcher.php -> __invoke (line 206)
in vendor/symfony/event-dispatcher/EventDispatcher.php -> callListeners (line 56)
in vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php -> dispatch (line 127)
in vendor/symfony/http-kernel/HttpKernel.php -> dispatch (line 154)
in vendor/symfony/http-kernel/HttpKernel.php -> handleRaw (line 76)
The URL that is generated for the action: http://localhost:7000/dashboard?crudAction=foo&crudControllerFqcn=App%5CController%5CFooCOntroller&entityId=0
The text was updated successfully, but these errors were encountered:
linkToCrudAction seems to be related to action on a specific row of your entity.
You have to disable new button and create another new button to call your custom controller (with route named backoffice_user_create for example):
Describe the bug
When I add a custom action to the NEW page, I'm getting the
entity with "id = 0" does not exist in the database
error when trying to access it.To Reproduce
(OPTIONAL) Additional context
Stack:
The URL that is generated for the action:
http://localhost:7000/dashboard?crudAction=foo&crudControllerFqcn=App%5CController%5CFooCOntroller&entityId=0
The text was updated successfully, but these errors were encountered: