Skip to content

Latest commit

 

History

History
executable file
·
49 lines (33 loc) · 470 Bytes

README.md

File metadata and controls

executable file
·
49 lines (33 loc) · 470 Bytes

Timestamp

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;

}