Bug #32830

Validation on persist breaks with Doctrine Lazy Loading Proxies

Added by Sebastian Kurfuerst almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Should have
Category:
Persistence
Start date:
2011-12-24
Due date:
% Done:

100%

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

Description

Hey everybody,

I am currently experiencing an error with the Validate-On-Persist:

Fatal error: Call to a member function getClassName() on a non-object in /.../Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Persistence_Doctrine_PersistenceManager_Original.php on line 112

The stack trace is attached.

After debugging a little deeper, it appears that this happens when a lazily-loaded entity is updated. In this case, the get_class($object) in ReflectionService returns something like "Doctrine\....Proxies\FooBarDomainModelBar" --> and obviously our Reflection Service cannot deal with this.


Files


Related issues

Related to TYPO3.Flow - Bug #31502: Validation during persistence got lost in Doctrine additionResolvedKarsten Dambekalns2011-11-02

Actions
#1

Updated by Gerrit Code Review almost 10 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 http://review.typo3.org/7513

#2

Updated by Gerrit Code Review almost 10 years ago

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

#4

Updated by Karsten Dambekalns almost 10 years ago

  • Category set to Persistence
  • Assignee set to Sebastian Kurfuerst
  • Target version set to 1.0.3
#5

Updated by Gerrit Code Review almost 10 years ago

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

#6

Updated by Gerrit Code Review almost 10 years ago

Patch set 1 for branch FLOW3-1.0 has been pushed to the review server.
It is available at http://review.typo3.org/7715

#7

Updated by Sebastian Kurfuerst almost 10 years ago

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

Also available in: Atom PDF