Datetime Datatype Doctrine 2 ORM


Description
datetime Datatype definition


<?php
class Product
{
    /**
     * @Column(type="datetime")
     */
    private $foo;
}
Maps a SQL DATETIME/TIMESTAMP to a PHP DateTime object.

SEE ALSO