I have a DateTime field:
DateTime
/** * Date time posted * @Column(type=\"datetime\") */ private $dtPosted;
which is set to a defau
The date() function returns a string. The datetime type works with DateTime objects. So either change the mapping type to string or use DateTime objects.
date()
datetime
string