[-] FO : ObjectModel/Db tried to add entities with a primary key pre-filled #PSCFV-3652 #PSCFV-3651

This commit is contained in:
dMetzger
2012-08-17 09:35:05 +00:00
parent 76ab2209a1
commit ba429729ae
+1
View File
@@ -450,6 +450,7 @@ abstract class ObjectModelCore
$this->date_upd = date('Y-m-d H:i:s');
// Database insertion
unset($this->id);
if (!$result = ObjectModel::$db->insert($this->def['table'], $this->getFields(), $null_values))
return false;