mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2658: Inserting NULL for Undefined Variables #3335
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Sep 7, 2013).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user jjulien:
When a MySQL schema contains a line like this:
failedattemptsint(11) NOT NULL DEFAULT '0',If a new entity is created and the failedattempts variable is never set, Doctrine attempts to insert the value NULL which throws an SQL error. If a value is undefined for a new object, shouldn't it just be excluded from the insert fields?