[BUGFIX] Extbase: Use fully populated records in Backend::insertObject() 56/42656/3
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Sat, 15 Aug 2015 20:05:47 +0000 (22:05 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Mon, 17 Aug 2015 20:28:17 +0000 (22:28 +0200)
commit3b5400e6b5344bc91798ade701de8723a63a5be0
tree75f8ba05798baa6ad1a6a6bb54a9e91c3364c0cf
parentbf13b4ad3dc070d96708991e652f7fd4ad03843f
[BUGFIX] Extbase: Use fully populated records in Backend::insertObject()

To successfully insert new records into a database that does not
silently convert NULL values being inserted into NOT NULL columns (MySQL
in strict mode, PostgreSQL) it is necessary to use a fully
populated record, even if it contains only placeholders for some fields
like relations or reference counters.

Resolves: #69084
Releases: master
Change-Id: I89e79d59ad53666432e73c3b1651323d0d506ac3
Reviewed-on: http://review.typo3.org/42656
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Alexander Schnitzler <typo3@alexanderschnitzler.de>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php