Project

General

Profile

Actions

Bug #95823

open

Extbase does not support private domain object properties

Added by Alexander Schnitzler over 2 years ago. Updated 10 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
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.

Actions #1

Updated by Benni Mack 10 months ago

  • Target version changed from 12 LTS to Candidate for patchlevel
Actions

Also available in: Atom PDF