Bug #59366

fix* lifecycle callbacks should not be registered for unproxied entities

Added by Alexander Berl over 7 years ago. Updated almost 7 years ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Persistence
Target version:
-
Start date:
2014-06-05
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

When entities are annotated @Flow\Proxy(false), lifecycle methods for fix* are still registered in the AnnotationDriver, leading to an exception being thrown by doctrine that the lifecycle callback method does not exist.

Since unproxied classes are not supposed to work with AOP/DI and those fix* methods only deal with that, the registration of those fixes is unneeded in that case.

Example code:
https://gist.github.com/albe/77937e10cd2a86c12d09

Note: Obviously, unproxied entities need to handle primary key/identifier themself.

#1

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

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

#2

Updated by Gerrit Code Review almost 7 years ago

Patch set 2 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/30655

Also available in: Atom PDF