Could someone tell me how to add default value on datetime column? I can\'t do this like this:
protected $registration_date = date(\"Y-m-d H:i:s\", time());
For default value CURRENT_TIMESTAMP:
@ORM\Column(name="created_at", type="datetime", options={"default": "CURRENT_TIMESTAMP"})
Or for older Symfony versions:
@ORM\Column(name="created_at", type="datetime", options={"default": 0})
Worked for me... However this works only with MySQL.