Archive - June 2012

Doctrine 2 integrity constraint

If using Doctrine you have probably come across the error message “SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘column_id’ cannot be null” at least once. This error occurs on doctrine persist when using a entity that both has mappings for a ordinary field and an Doctrine relation field (many-to-one, one-to-many) with the same name.
Read More