Bug #49815

PersistentObjectConverter does not allow to set arbitrary setters

Added by Christopher Hlubek about 2 years ago. Updated about 1 year ago.

Status:Resolved Start date:2013-07-09
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-
PHP Version: Complexity:
Has patch:No Affected Flow version:Git master

Description

For a better abstraction of domain logic it is quite important to use "virtual" properties by implementing additional getters or setters that will set internal properties. For example calculated properties, where a form should set a value that will be stored in some other format or value.

The PersistentObjectConverter uses only the class schema which is built from all non-transient properties of a class. The ObjectConverter instead uses only setters or constructor arguments to get the type of child properties during type conversion.

Associated revisions

Revision 8c28a586
Added by Christopher Hlubek about 2 years ago

[BUGFIX] Allow arbitrary setters in PersistentObjectConverter

This change supports additional setters in entities by implementing a
fallback to the reflection service if the class schema does not contain
a property.

Change-Id: I521790eaa28768831f96cd3397f21c606b7a8ae7
Resolves: #49815
Releases: master, 2.0

Revision 4d68da2c
Added by Christopher Hlubek over 1 year ago

[BUGFIX] Allow arbitrary setters in PersistentObjectConverter

This change supports additional setters in entities by implementing a
fallback to the reflection service if the class schema does not contain
a property.

Change-Id: I521790eaa28768831f96cd3397f21c606b7a8ae7
Resolves: #49815
Releases: master, 2.0

History

#1 Updated by Gerrit Code Review about 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22140

#2 Updated by Gerrit Code Review about 2 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22140

#3 Updated by Gerrit Code Review about 2 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22140

#4 Updated by Gerrit Code Review over 1 year ago

Patch set 1 for branch 2.0 of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27203

#5 Updated by Bastian Waidelich about 1 year ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF