how to define current timestamp in yaml with doctrine

Posted by Carson on Stack Overflow See other posts from Stack Overflow or by Carson
Published on 2010-05-30T12:42:40Z Indexed on 2010/06/02 12:23 UTC
Read the original article Hit count: 318

Filed under:

I tried the following yaml code:

columns:

 created_time:
   type: timestamp
   notnull: true
   default: default CURRENT_TIMESTAMP

In the outputted sql statement, the field is treated as datetime instead of timestamp, which I cannot define the current timestamp in it...

If I insist to use timestamp to store current time, how to do so in yaml?

© Stack Overflow or respective owner

Related posts about doctrine