New in Symfony 8.2: Custom Property Accessors
The PropertyInfo component tells the rest of Symfony how to read and write the properties of your objects. It finds the methods by convention: getName(), isActive(), setName(), addRole(), removeRole(), etc. That works for most classes, but not for the ones that prefer names taken from the domain, like rename() or grant(). Symfony 8.2 lets you name those methods yourself and improves the metadata of property hooks.
Symfony · Nov 18, 2026 · 08:09 UTC