I have a form containing several fields. One of them is a Datetime field. How to define a default value for that field?
I\'ve tried setting a value on the related e
Set it in the entity constructor:
class Entity { /** * @var \DateTime */ private $date; public function __construct() { $this->date = new \DateTime(); } }