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
It would be very useful to have support for this feature to be able to create fields for nested properties, in cases where the object to which the property belongs may be nullable
Example
TextField::new('person?.firstname', 'Firstname')
The text was updated successfully, but these errors were encountered:
…netsky)
This PR was merged into the 4.x branch.
Discussion
----------
Allow fields containing null-safe property paths
see #6249
Added additional field name sanitization so that symfony form does not throw an error on fields with null-safe property paths.
Commits
-------
9d07755 Allow fields containing null-safe property paths
PropertyAccessor component provides "null-safe property path" feature:
https://symfony.com/doc/current/components/property_access.html#accessing-nullable-property-paths
It would be very useful to have support for this feature to be able to create fields for nested properties, in cases where the object to which the property belongs may be nullable
Example
The text was updated successfully, but these errors were encountered: