Using Doctrine DBAL, I have some code that inserts a new row into the main database from a form values binded as $telephone_international and $surname.
After that is done, it inserts a new record into a duplicate database. $app['dbs']['backup']
If that's successful, the entry inserted previously the main database gets its copied value updated. The copied column is a timestamp, default value is 0, but the following code should change it to the current time.
$app['dbs']['main']->update('phonebook', array(
'mediated' => 'NOW()'
), array(
'telephone' => $telephone_international,
'surname' => $surname
));
But the value is still 0000-00-00 00:00:00. I wonder if 'NOW()' is being treated as a string.