Describe the bug
A crash from PropertyAccessor via AssociationConfigurator
To Reproduce
Unsure exactly, but it appears that when a null instance is passed to EntityDto and RenderFilters is called, AssociationConfigurator will always attempt accessing the value from EntityDto, however as PropertyAccessor in symfony 6.4 uses a hard object|array typing this will then cause a TypeError which isn't caught by AssociationConfigurator (only catches UnexpectedTypeException)
Describe the bug A crash from PropertyAccessor via AssociationConfigurator
To Reproduce Unsure exactly, but it appears that when a null instance is passed to EntityDto and RenderFilters is called, AssociationConfigurator will always attempt accessing the value from EntityDto, however as PropertyAccessor in symfony 6.4 uses a hard
object|array
typing this will then cause aTypeError
which isn't caught by AssociationConfigurator (only catchesUnexpectedTypeException
)(OPTIONAL) Additional context https://github.com/EasyCorp/EasyAdminBundle/blob/f63e526f65219f26a3add5020a6021a0f5e29e26/src/Field/Configurator/AssociationConfigurator.php#L121
This line should be preceded by a
if(null !== $entityDto->getInstance())
check to prevent the crash, I'll make a fork shortly.