trait BlameableTrait | trait BlameableTrait | ||||
{ | { | ||||
/** | |||||
* @Gedmo\Blameable(on="create") | |||||
*/ | |||||
#[Gedmo\Blameable(on: 'create')] | |||||
#[ORM\ManyToOne(targetEntity: 'Lc\SovBundle\Model\User\UserInterface')] | #[ORM\ManyToOne(targetEntity: 'Lc\SovBundle\Model\User\UserInterface')] | ||||
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')] | #[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')] | ||||
protected $createdBy; | protected $createdBy; | ||||
/** | |||||
* @Gedmo\Blameable(on="update") | |||||
*/ | |||||
#[Gedmo\Blameable(on: 'update')] | |||||
#[ORM\ManyToOne(targetEntity: 'Lc\SovBundle\Model\User\UserInterface')] | #[ORM\ManyToOne(targetEntity: 'Lc\SovBundle\Model\User\UserInterface')] | ||||
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')] | #[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')] | ||||
protected $updatedBy; | protected $updatedBy; |
trait SluggableTrait | trait SluggableTrait | ||||
{ | { | ||||
/** | |||||
* @Gedmo\Slug(fields={"title"}, unique=true) | |||||
*/ | |||||
#[Gedmo\Slug(fields: ['title'], unique: true)] | |||||
#[ORM\Column(type: 'string', length: 255)] | #[ORM\Column(type: 'string', length: 255)] | ||||
protected $slug; | protected $slug; | ||||
trait TimestampableTrait | trait TimestampableTrait | ||||
{ | { | ||||
/** | |||||
* @Gedmo\Timestampable(on="create") | |||||
*/ | |||||
#[Gedmo\Timestampable(on: 'create')] | |||||
#[ORM\Column(type: 'datetime')] | #[ORM\Column(type: 'datetime')] | ||||
protected $createdAt; | protected $createdAt; | ||||
/** | |||||
* @Gedmo\Timestampable(on="update") | |||||
*/ | |||||
#[Gedmo\Timestampable(on: 'update')] | |||||
#[ORM\Column(type: 'datetime')] | #[ORM\Column(type: 'datetime')] | ||||
protected $updatedAt; | protected $updatedAt; | ||||
return $this; | return $this; | ||||
} | } | ||||
} | |||||
} |
trait TranslatableTrait | trait TranslatableTrait | ||||
{ | { | ||||
/** | |||||
* Post locale | |||||
* Used locale to override Translation listener's locale | |||||
* @Gedmo\Locale | |||||
*/ | |||||
#[Gedmo\Locale] | |||||
protected $locale; | protected $locale; | ||||
#[ORM\Column(type: 'array', nullable: true)] | #[ORM\Column(type: 'array', nullable: true)] | ||||
return $this; | return $this; | ||||
} | } | ||||
} | |||||
} |
} | } | ||||
], | ], | ||||
"require": { | "require": { | ||||
"php": ">=7.2.5", | |||||
"php": ">=8.1", | |||||
"artgris/filemanager-bundle": "^2.2", | "artgris/filemanager-bundle": "^2.2", | ||||
"easycorp/easyadmin-bundle": "^3.0", | |||||
"easycorp/easyadmin-bundle": "^4.0", | |||||
"friendsofsymfony/ckeditor-bundle": "^2.2", | "friendsofsymfony/ckeditor-bundle": "^2.2", | ||||
"stof/doctrine-extensions-bundle": "^1.5" | "stof/doctrine-extensions-bundle": "^1.5" | ||||
}, | }, |