Bug #91727

Exception if model has class members without accessors

Added by Markus Klein 12 days ago. Updated 12 days ago.

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

0%

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 }

History

#1 Updated by Markus Klein 12 days ago

  • Description updated (diff)

Also available in: Atom PDF