[BUGFIX] Use count on storage after initialization of LazyObjectStorage 43/27443/2
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Wed, 5 Feb 2014 12:42:32 +0000 (13:42 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 21 Feb 2014 19:41:32 +0000 (20:41 +0100)
commitc47d8c53a539cc031b7618cd090f0710a52027fb
tree81bf32cbdcd19627970fa26af91d470c2ee79bb6
parent6512f653cc38e5bbcde87a67d938b8d92f3e9c07
[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/27443
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/extbase/Classes/Persistence/Generic/LazyObjectStorage.php