Bug #30467

Doctrine fails to initialize AOP and DI in some cases

Added by Andreas Förthner almost 4 years ago. Updated over 3 years ago.

Status:Resolved Start date:2011-09-30
Priority:Should have Due date:
Assigned To:Andreas Förthner % Done:

100%

Category:Persistence
Target version:TYPO3 Flow Base Distribution - 1.0.2
PHP Version: Complexity:
Has patch: Affected Flow version:FLOW3 1.0.0

Description

When a Doctrine lazy loading proxy for an object is created for some specific purpose (e.g. when initializing session objects relating to an entity) but filled afterwards "on the fly" if this object is part of a wide range "findBy" call through some query, Doctrine initializes the lazy loading proxy but does not call __wakeup and therefore not initialize AOP and DI.

Associated revisions

Revision 3b704952
Added by Lienhart Woitok over 3 years ago

[BUGFIX] Doctrine@PostLoad calls DI and AOP initialization explicitly.

When a Doctrine lazy loading proxy for an object is
created for some specific purpose (e.g. when initializing
session objects relating to an entity) but filled afterwards
"on the fly" if this object is part of a wide range "findBy"
call through some query, Doctrine initializes the lazy
loading proxy but does not call __wakeup and therefore not initialize AOP and DI.
We work around this issue, by initializing those objects
with a Doctrine PostLoad hook explicitly.

Change-Id: I83ba6484e9daecf5344242815ec52ad1770907f9
Resolves: #30467
Releases: 1.1

History

#1 Updated by Mr. Hudson almost 4 years ago

  • Status changed from New to Under Review

Patch set 1 of change I83ba6484e9daecf5344242815ec52ad1770907f9 has been pushed to the review server.
It is available at http://review.typo3.org/5454

#2 Updated by Karsten Dambekalns almost 4 years ago

  • Target version changed from 1.0.0 to 1.0.1

#3 Updated by Karsten Dambekalns almost 4 years ago

  • Affected Flow version set to FLOW3 1.0.0

#4 Updated by Karsten Dambekalns over 3 years ago

  • Target version changed from 1.0.1 to 1.0.2

#5 Updated by Gerrit Code Review over 3 years ago

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

#6 Updated by Lienhart Woitok over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF