I'm looking for a way to use the MySQL timestamp
column type in Doctrine 1.0. I was able to get it working by modifying Doctrine_DataDict_Mysql
to return TIMESTAMP
instead of DATETIME
when the specified type is timestamp
, but I'm fairly certain that it's not the right way, and it will probably break at some point.
Doctrine 2.0 seems to come with a built-in type mapping facility, but I can't find an equivalent mechanism in 1.0, and I'm kind of stuck with it for now.
Any pointers would be much appreciated.