-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Adding a FormField::addPanel() generate a user notice on Symfony 6.2.x when the option enable_lazy_ghost_objects: true is present inside the doctrine.yaml config.
Notice is thrown here when trying to access a property on the entity that obviously doesn't exist.
in src/Field/Configurator/CommonPreConfigurator.php
try {
$value = null === $entityDto->getInstance() ? null : $this->propertyAccessor->getValue($entityDto->getInstance(), $field->getProperty());
} catch (AccessException|UnexpectedTypeException) {
$isReadable = false;
}
Related issue in symfony :
Putting the option то : option enable_lazy_ghost_objects: false solve the issue.
Metadata
Metadata
Assignees
Labels
No labels