Skip to content


DDC-2658: Inserting NULL for Undefined Variables #3394

doctrinebot opened this Issue · 0 comments

2 participants


Jira issue originally created by user jjulien:

When a MySQL schema contains a line like this:
failedattempts int(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?

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.