EasyCorp / EasyAdminBundle

EasyAdmin is a fast, beautiful and modern admin generator for Symfony applications.
MIT License
3.99k stars 1.01k forks source link

Allow fields containing null-safe property paths #6249

Closed alshenetsky closed 1 month ago

alshenetsky commented 1 month ago

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

TextField::new('person?.firstname', 'Firstname')
javiereguiluz commented 1 month ago

Closing as fixed in #6250.