Issue Bug Closed

#69247Inserting records fails when the model has a incompatible default value

Morton Jonuschat 08/21/15, 18:00 updated 10/19/17, 21:51

Description

Inserting a new record through an extbase repository fails if the model and the database schema have incompatible defaults.

Example:

If the model has a property `title` without any default value assigned (so its NULL for PHP) and the database schema has the column defined as `title varchar(255) DEFAULT ‘’ NOT NULL` extbase tries to insert an explicit NULL into the database.

This is due to the new default value determination insertObject().

Reviews 1