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.
Tags
Table of Contents
Properties
- $createdBy : mixed
- $updatedBy : mixed
Methods
- getCreatedBy() : string|null
- Get the creation author.
- getUpdatedBy() : string|null
- Get the modification author.
- setCreatedBy() : self
- Set the creation author.
- setUpdatedBy() : self
- Set the modification author.
Properties
$createdBy
private
mixed
$createdBy
Tags
$updatedBy
private
mixed
$updatedBy
Tags
Methods
getCreatedBy()
Get the creation author.
public
getCreatedBy() : string|null
Return values
string|nullgetUpdatedBy()
Get the modification author.
public
getUpdatedBy() : string|null
Return values
string|nullsetCreatedBy()
Set the creation author.
public
setCreatedBy(string|null $createdBy) : self
Parameters
- $createdBy : string|null
Return values
selfsetUpdatedBy()
Set the modification author.
public
setUpdatedBy(string|null $updatedBy) : self
Parameters
- $updatedBy : string|null