Bug #91727

Exception if model has class members without accessors

Added by Markus Klein about 1 year ago. Updated 5 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2020-06-30
Due date:
% Done:

0%

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

Description

If an Extbase model has a class member, which has no public accessor functions and has the type of some other model, then an exception is throws during object validation. (The class member used purely during runtime and not stored permanently.)

Could not get value of property Thing::user", make sure the property is either public or has a getter getUser(), a hasser hasUser() or an isser ',

Until Core v8.7 such class members have been ignored.

Example:

class User {}
class Thing { /** User */ protected $user }
#1

Updated by Markus Klein about 1 year ago

  • Description updated (diff)
#2

Updated by Bastian Stargazer 5 months ago

Can confirm this issue in v10.4.12, took a while to figure out the problem.

Also available in: Atom PDF