Project

General

Profile

Actions

Bug #91727

open

Exception if model has class members without accessors

Added by Markus Klein almost 4 years ago. Updated about 3 years 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 }

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #91726: Transient annotation is ignoredNew2020-06-30

Actions
Actions #1

Updated by Markus Klein almost 4 years ago

  • Description updated (diff)
Actions #2

Updated by Bastian Stargazer about 3 years ago

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

Actions #3

Updated by Markus Klein 10 months ago

  • Related to Bug #91726: Transient annotation is ignored added
Actions

Also available in: Atom PDF