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
In my usecase the FormState holds asset objects like Neos\Media\Domain\Model\Document or Neos\Media\Domain\Model\Image. When form is rendered with initalized formState having one of the mentioned objects, an exception is thrown:
Absorbed Exception: Notice: property_exists(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Neos\Media\Domain\Model\Document" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in .../Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_Flow_Persistence_Doctrine_PersistenceManager.php line 188
bwaidelich
changed the title
Make allowed_classes configurable when unserializing formState
Multi-Step forms fail when saving objects in the Form State
Aug 5, 2021
This fixes a regression introduced with #101 that prevented
objects like images and documents to be persisted in the
Form State, leading to exceptions in multi step forms.
Fixes: #143
Related: #126#135
In my usecase the FormState holds asset objects like
Neos\Media\Domain\Model\Document
orNeos\Media\Domain\Model\Image
. When form is rendered with initalized formState having one of the mentioned objects, an exception is thrown:Absorbed Exception: Notice: property_exists(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Neos\Media\Domain\Model\Document" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in .../Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_Flow_Persistence_Doctrine_PersistenceManager.php line 188
Is related to #126
The text was updated successfully, but these errors were encountered: