Bug #9585
PDOException thrown if array contains NULL as value
Status:
Resolved
Priority:
Should have
Assignee:
Category:
Persistence
Target version:
Start date:
2010-09-03
Due date:
% Done:
100%
Estimated time:
PHP Version:
Has patch:
Complexity:
Description
SQLSTATE[HY000]: General error: 1 table properties_data has no column named null 10 PDO::prepare("INSERT INTO "properties_data" ("parent", "name", "index", "type", "null") VALUES (?, ?, ?, ?, ?)") 9 F3\FLOW3\Persistence\Backend\GenericPdo\Backend::storePropertyData("bc924de7-72e7-420e-9019-96fda74d1c4a", "contentObject", array) 8 F3\FLOW3\Persistence\Backend\GenericPdo\Backend::setProperties(array, 1) 7 F3\FLOW3\Persistence\Backend\GenericPdo\Backend::persistObject(F3\TYPO3CR\Domain\Model\Node_AOPProxy_Development) 6 F3\FLOW3\Persistence\Backend\AbstractBackend::persistObjects()
This happens if you try to persist an array as follows:
protected $myVar = array(0 => NULL);