[BUGFIX] Use count on storage after initialization of LazyObjectStorage 57/27357/2
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Wed, 5 Feb 2014 12:42:32 +0000 (13:42 +0100)
committerMarc Bastian Heinrichs <typo3@mbh-software.de>
Sat, 8 Feb 2014 10:53:24 +0000 (11:53 +0100)
commite7935cbe91df47d2d3d0924727d47bb670492266
tree3ca6049a194d65b4cb0dc6a2bed99cdc9dd93b33
parent4bef9b87a3179be0fd8780855a76cd4cc1f2451b
[BUGFIX] Use count on storage after initialization of LazyObjectStorage

The count in LazyObjectStorage for relation type HAS_MANY has
to use the count on storage items after initialization. Otherwise
the wrong count is returned for a not persisted storage.

Resolves: #54724
Releases: 6.2, 6.1, 6.0
Change-Id: I817ce86dde11b175e6a5765a8f6518770ba75f28
Reviewed-on: https://review.typo3.org/27357
Reviewed-by: Wouter Wolters
Reviewed-by: Nico de Haen
Tested-by: Nico de Haen
Tested-by: Peter Beernink
Reviewed-by: Stefan Neufeind
Reviewed-by: Marcin Sągol
Reviewed-by: Marc Bastian Heinrichs
Tested-by: Marc Bastian Heinrichs
typo3/sysext/extbase/Classes/Persistence/Generic/LazyObjectStorage.php