WIP: Implement model

This commit is contained in:
Björn Fromme
2023-09-12 18:17:24 +02:00
parent 35ca61d21b
commit f8c9ff82a5
35 changed files with 2935 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
<?php
namespace App\Entity\Traits;
use Doctrine\ORM\Mapping as ORM;
trait BlameableEntity
{
#[ORM\Column(nullable: true)]
private ?string $createdBy = null;
#[ORM\Column(nullable: true)]
private ?string $updatedBy = null;
public function getCreatedBy(): ?string
{
return $this->createdBy;
}
public function setCreatedBy(string $createdBy): static
{
$this->createdBy = $createdBy;
return $this;
}
public function getUpdatedBy(): ?string
{
return $this->updatedBy;
}
public function setUpdatedBy(string $updatedBy): static
{
$this->updatedBy = $updatedBy;
return $this;
}
}