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
The bug appear with v4.14. I'm face with it in two contexts.
On an EventSubcriber :
<?php
...
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeCrudActionEvent;
...
class DocumentController extends AbstractCrudController implements EventSubscriberInterface
...
public static function getSubscribedEvents(): array
{
return [
BeforeCrudActionEvent::class => 'onBeforeCrudActionEvent',
];
}
public function onBeforeCrudActionEvent(BeforeCrudActionEvent $event): void
{
$context = $event->getAdminContext();
$entityInstance = $context?->getEntity()->getInstance();
}
Give me this error: EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext::getEntity(): Return value must be of type EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto, null returned
When I visit link generated (/admin?routeName=backoffice_user_create), same error, located in vendor/easycorp/easyadmin-bundle/src/Controller/AbstractCrudController.php:292:
EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext::getEntity(): Return value must be of type EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto, null returned
To Reproduce
Easy ton reproduce with first example above.
The text was updated successfully, but these errors were encountered:
Describe the bug
The bug appear with v4.14. I'm face with it in two contexts.
Give me this error:
EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext::getEntity(): Return value must be of type EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto, null returned
On my CrudController:
When I visit link generated (/admin?routeName=backoffice_user_create), same error, located in vendor/easycorp/easyadmin-bundle/src/Controller/AbstractCrudController.php:292:
To Reproduce
Easy ton reproduce with first example above.
The text was updated successfully, but these errors were encountered: