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
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
EasyAdminBundle/src/Field/Configurator/AssociationConfigurator.php
Line 121 in f63e526
This line should be preceded by a
if(null !== $entityDto->getInstance())
check to prevent the crash, I'll make a fork shortly.The text was updated successfully, but these errors were encountered: