I am processing a submitted Zend Form which updates a Doctrine Record using the following code, where $query is a query built using a doctrine query builder:
are you using MySQL? this can happen because MySQL is running in strict mode. run these queries from phpMyAdmin or whatever db administrator you are using to check if the database is in strict mode:
SELECT @@GLOBAL.sql_mode;
SELECT @@SESSION.sql_mode;
if it returns something containing STRICT_TRANS_TABLES
you could try and run:
SET @@global.sql_mode= 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';