laminas-hydrator
laminas-hydrator copied to clipboard
Rfc 114
Q | A |
---|---|
Documentation | no |
Bugfix | no |
BC Break | no |
New Feature | yes |
RFC | yes |
QA | no |
Allow the ReflelctionHydrator to hydrate and extract private properties from parent classes.
When trying to hydrate objects with private properties in parent object, that currently does not work. A Doctrine proxied entity for example has all the private entity properties in the base class which is the entity we are trying to hydrate.
An optional parameter $includeParentProperties is now available for the extract and hydrate methods that will allow private parent properties to be extracted or hydrated. This property defaults to false if not provided so it does not cause a BC break.