[BUGFIX] Fix attaching objects to a existing objectstorage
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Sun, 14 Apr 2013 10:19:44 +0000 (12:19 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Sun, 14 Apr 2013 10:24:49 +0000 (12:24 +0200)
commit8ecb544b6bb0081ca2663e2b5eb827a9bd0e1d70
tree5d8848e38a83c29080a2d4feb4f5c8984eb95d58
parentd017071d726975a3c4f1a791b7337a20a8ff6268
[BUGFIX] Fix attaching objects to a existing objectstorage

This is a follow up to "Optimize persisting a dirty objectStorage"
https://review.typo3.org/#/c/3390/
A new relation should be attached if the cleanstate relation position
is NULL instead of updating a non existing one.

Also creating new object with children attached is fixed now.

Releases: 6.1
Fixes: #47195
Fixes: #47197
Relates: #28091
Change-Id: I2a4a7602aeb8d9f4163fed36640ec830fe9ab300
Reviewed-on: https://review.typo3.org/19940
Reviewed-by: Wouter Wolters
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php