Skip to content

ThunboltCMS/doctrine-timestamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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;

}