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?
You could use the ‘Timestampable’ functionality in doctrine, eg: