[BUGFIX] Getting the identifier for a lazy object fails 96/22696/6
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Tue, 30 Jul 2013 08:52:43 +0000 (10:52 +0200)
committerMarc Bastian Heinrichs <typo3@mbh-software.de>
Thu, 17 Oct 2013 08:25:07 +0000 (10:25 +0200)
commit4fc14b5eba811727ce94aa50777d823c00b47c2e
treee48f664d72841918a13b53cc9d9900502c2338f2
parent1598cd6491a112db98487277ccc3b813e182e44d
[BUGFIX] Getting the identifier for a lazy object fails

Using PersistenceManager::getIdentifierByObject doesn't work for lazy
object since version 6.1, because the function uses the session object
directly. Before the Backend::getIdentifierByObject was used, which
handles lazy objects right.
Solution: use the Backend again.

Resolves: #50548
Releases: 6.2, 6.1
Change-Id: I8381a968f730918b96b6764d3f62bfc5f58509ee
Reviewed-on: https://review.typo3.org/22696
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Daan Wissing
Tested-by: Daan Wissing
Reviewed-by: Marc Bastian Heinrichs
Tested-by: Marc Bastian Heinrichs
typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php
typo3/sysext/extbase/Classes/Persistence/Generic/PersistenceManager.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/PersistenceManagerTest.php