[BUGFIX] Check identity map for existing objects 52/25252/11
authorNico de Haen <mail@ndh-websolutions.de>
Sun, 10 Nov 2013 23:35:36 +0000 (00:35 +0100)
committerSteffen Müller <typo3@t3node.com>
Tue, 18 Feb 2014 22:35:09 +0000 (23:35 +0100)
commitfaa6e8a6a38698a814e64f6f2276f4afd415c485
tree196a5ca3788c57ceb69bb743a6277718aa2d0800
parent6c973b87ac111c8af7eee01cbd77f32a8b9cb3cc
[BUGFIX] Check identity map for existing objects

The DataMapper should check if an object is already in the identityMap
before calling fetchRelated, since otherwise the object will be retrieved
from the database again.

Resolves: #53514
Releases: 6.1,6.2
Change-Id: I24e262322f1f0ba3c346fa01c50fa9063866aef7
Reviewed-on: https://review.typo3.org/25252
Reviewed-by: Nico de Haen
Reviewed-by: Fabien Udriot
Tested-by: Wouter Wolters
Reviewed-by: Steffen Müller
Tested-by: Steffen Müller
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php