TIC\DormBundle\Traits\EntityBlameable
Gestion des champs createdBy et updatedBy d'une entité Doctrine.
Alternative sans nécessiter ni extension Doctrine, ni bundle tiers,
tels que Gedmo et StofDoctrineExtensionsBundle.
Synopsis
trait EntityBlameable
{
- // members
- private $createdBy;
- private $updatedBy;
- // methods
- public ?string getCreatedBy()
- public ?string getUpdatedBy()
- public EntityBlameable setCreatedBy()
- public EntityBlameable setUpdatedBy()
Hierarchy
Used by
Members
private
- $createdBy
- $updatedBy
Methods
public
- getCreatedBy() — Get the creation author.
- getUpdatedBy() — Get the modification author.
- setCreatedBy() — Set the creation author.
- setUpdatedBy() — Set the modification author.