Issue Bug Under Review Quiet

#95823Extbase does not support private domain object properties

Alexander Schnitzler 10/30/21, 11:09 updated 09/29/26, 14:11

Description

Internally, Extbase does not use getters to gather internal property values but uses method _getProperty() which then calls return $this->{$propertyName};

This however cannot access private properties of the child class.

One idea to get rid of this and other “magic” methods would be to rely on proper access via getters/setters. That way, Extbase could internally use symfony/property-access.

A downside of this is that it’s a huge change for those users that don’t use getters to expose the internal value directly but add their own logic as well. We would need to make this change very visible to the community so people check and adjust their getters/setters/hassers.

Reviews 1

History 222