[BUGFIX] Fix persisting of lazy object storages
authorThomas Maroschik <tmaroschik@dfau.de>
Mon, 29 Apr 2013 21:42:33 +0000 (23:42 +0200)
committerMarc Bastian Heinrichs <typo3@mbh-software.de>
Mon, 29 Apr 2013 22:07:43 +0000 (00:07 +0200)
commit23442a4b0ae88d9317823be3aeba6621cf7c3e39
treea7ea3b5eafb9d6a13c1b1d4b47feda975fdb8503
parent7f5b538a16aff8131056915dd746a5407968aefc
[BUGFIX] Fix persisting of lazy object storages

Lazy object storages saved in the clean state of a
parent object get initialized during persisting and
set the clean state of the parent object to the current changed
state. After that the persistence backend cannot detect any
changes and skips persisting of the changed relations.

This fix checks if the lazy object storage is already part
of the parents clean state and skips the memorization in
this case.

Fixes: #47703
Releases: 6.2, 6.1
Change-Id: I6801ca8ff709253ac33c65bc619b5d794f5615ce
Reviewed-on: https://review.typo3.org/20335
Reviewed-by: Nico de Haen
Tested-by: Nico de Haen
Reviewed-by: Marc Bastian Heinrichs
Tested-by: Marc Bastian Heinrichs
typo3/sysext/extbase/Classes/Persistence/Generic/LazyObjectStorage.php