« Previous | Next » 

Revision 90408958

Parent 4a9c5334
Child 98838002

Added by Alexander Berl over 6 years ago

[BUGFIX] Do not register lifecycles for unproxied entities

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.

This changeset fixes that, by only registering lifecycle callbacks on
entities that are proxied.

Change-Id: I04f0b3263e6ba310fd3d4bf9aacc885c621bf1bd
Fixes: FLOW-258
Releases: master, 3.0, 2.3, 2.2

  • added
  • modified
  • copied
  • renamed
  • deleted