[BUGFIX] Persist traversable domain objects via identifier 87/51287/3
authorMathias Brodala <mbrodala@pagemachine.de>
Thu, 12 Jan 2017 13:03:04 +0000 (14:03 +0100)
committerBenni Mack <benni@typo3.org>
Fri, 27 Jan 2017 10:17:44 +0000 (11:17 +0100)
commit9378ce8b59ca3747a62260373251d2b45f61591e
tree84eaa0d9e0f75cb99a343af8fd3a6c6d28e0cb87
parentee64466386880188b2820b0c79e4ac2f66bc602b
[BUGFIX] Persist traversable domain objects via identifier

Objects implementing the DomainObjectInterface must always be
persisted using their identifier, even if they implement the
Traversable interface.

Change-Id: Iccb53d6e7ded9b6b5300e111e8503641b10615f4
Resolves: #79294
Related: #57255
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/51287
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php