Bug #95823

Extbase does not support private domain object properties

Added by Alexander Schnitzler 8 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2021-10-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

No data to display

Also available in: Atom PDF