Actions
Bug #80119
openConstraint Unique, Default null - String property ORM
Status:
New
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2017-03-03
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
Hey guys,
it's not possible to have a table with a column unique constraint that has also the default value NULL (not a string).
Updating a model with its setter method e.x.: model->setProp(NULL) will convert the NULL value to string 'NULL'.
Creating a second model and updating its property to NULL will throw an exception because the database integrity is violated (2 columns with string 'NULL' can't exist).
In another case this is already considered:
Actions