thunbolt/doctrine-timestamp

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

v4.0.0 2020-01-04 19:12 UTC

This package is auto-updated.

Last update: 2024-11-05 06:10:01 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;

}