DDC-2658: Inserting NULL for Undefined Variables #3394

doctrinebot opened this Issue Sep 7, 2013 · 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 Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment