-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where are stored "not mapped" properties ? #399
Comments
It's still part of the request data. probably in the POST parameters. Check the profiler or |
@craue Arf, it seems that there are not saved into session. So parameters are lost if I navigate through steps. In fact, the first step sets some options (not mapped properties) that influence other steps.
But, if I click on the "step 2" link label, parameters are lost because there are not in the request anymore. How can I do that ? |
What's the reason for not mapping the field? If it's because you're using the flow to "fill" an entity with data but you need additional form fields for proceeding within the flow, you should create a form data class dedicated for this flow which will contain the entity and the additional properties. |
@craue Yes that is the reason. That is what I done but it does not work. because all data stored in Request are lost if there are an error in the current step and I have an error mesage "Form cannot have extra fields"
After validating the current step Because not mapped data stored in Request are lost... Thanks, |
If you need submitted form data outside of the current request, map the fields. Take a closer look at property |
Hi,
I have a custom form type Foo::Type with unmapped values :
When I submit the current step, where is stored the propertyC value ? I try to dump form data after bind in the Controller :
But, there are only data mapped to the fooEntity inside.
Thanks,
The text was updated successfully, but these errors were encountered: