This is the same logic as [PropertyAccessor:309-310](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/PropertyAccess/PropertyAccessor.php#L309-L310) and [PropertyAccessor:409-432](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/PropertyAccess/PropertyAccessor.php#L409-L433).

I fail to see how it would not work considering this is exactly how the PropertyAccess Component works.