I use doctrine DBAL 2.5.2 with MySql 5.5
I have created a field with timestamp
type and an ON UPDATE CURRENT_TIMESTAMP
extra.
When I change the content from phpMyAdmin the field is updated and change to the current timestamp, but when I update the content from Doctrine/dbal nothing happen. I mean everything works except the on update
.
I call the update with $app['db']->update('mytable', $data, array('my_id' => $id);
How I can run the on update
trigger from the doctrine/dbal code ?
edit :
I add this code to check if I try to change the date.
if (isset($data['updated'])) unset($data['updated']);