I don\'t know which is the best way to store a timestamp in the database. I want to store the entire date with hours minutes and seconds but it only stores the date ( for in
You can use @Version like this:
/** * @var date $created * * @ORM\Column(name="created", type="datetime") * @ORM\Version */ private $created;
This will only work on a datetime type.