thunbolt/doctrine-timestamp

There is no license information available for the latest version (v3.0.0) of this package.

v3.0.0 2017-07-27 06:13 UTC

README

Usage

extensions:
    - Thunbolt\Doctrine\DI\TimestampExtension

For created and updated fields:


/**
 * @ORM\Entity()
 */
class Entity {

    use Thunbolt\Doctrine\Traits\Timestamp;

}

For created:

/**
 * @ORM\Entity()
 */
class Entity {

    use Thunbolt\Doctrine\Traits\TimestampCreated;

}

For updated:

/**
 * @ORM\Entity()
 */
class Entity {

    use Thunbolt\Doctrine\Traits\TimestampUpdated;

}