Details
Description
I experienced a bug when working with a datetime field that only rears its head when I use $record->replace()
// BUG!! $record->date_created = new Doctrine_Expression('NOW()'); $record->replace(); // date_created will be 0000-00-00 00:00:00, i.e. empty // WORKS FINE! $record->date_created = '2022-12-23 14:14:12'; $record->replace(); // WORKS FINE! $record->date_created = new Doctrine_Expression('NOW()'); $record->insert(); // WORKS FINE! $record->date_created = '2022-12-23 14:14:12'; $record->insert();
Thanks for the issue and description. I committed a fix that addresses the problem.