|
|
@@ -11,6 +11,7 @@ use App\Entity\Core\BankAccount;
|
|
|
use App\Entity\Core\ContactPoint;
|
|
|
use App\Entity\Core\Country;
|
|
|
use App\Entity\Core\File;
|
|
|
+use App\Entity\Traits\CreatedOnAndByTrait;
|
|
|
use App\Enum\Person\GenderEnum;
|
|
|
use App\Repository\Person\PersonRepository;
|
|
|
// use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
|
|
|
@@ -30,6 +31,8 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
|
|
#[ORM\Entity(repositoryClass: PersonRepository::class)]
|
|
|
class Person implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
{
|
|
|
+ use CreatedOnAndByTrait;
|
|
|
+
|
|
|
#[ORM\Id]
|
|
|
#[ORM\Column]
|
|
|
#[ORM\GeneratedValue]
|
|
|
@@ -110,12 +113,6 @@ class Person implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
#[ORM\Column(type: "json", nullable: true)]
|
|
|
private array $confidentiality = [];
|
|
|
|
|
|
- #[ORM\Column(type: 'date', nullable: true)]
|
|
|
- private ?\DateTimeInterface $createDate = null;
|
|
|
-
|
|
|
- #[ORM\Column(nullable: true)]
|
|
|
- private ?int $createdBy = null;
|
|
|
-
|
|
|
#[Pure]
|
|
|
public function __construct()
|
|
|
{
|
|
|
@@ -619,27 +616,4 @@ class Person implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->confidentiality = $confidentiality;
|
|
|
return $this;
|
|
|
}
|
|
|
-
|
|
|
- public function getCreateDate(): ?\DateTimeInterface
|
|
|
- {
|
|
|
- return $this->createDate;
|
|
|
- }
|
|
|
-
|
|
|
- public function setCreateDate(?\DateTimeInterface $createDate): self
|
|
|
- {
|
|
|
- $this->createDate = $createDate;
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
- public function getCreatedBy(): ?int
|
|
|
- {
|
|
|
- return $this->createdBy;
|
|
|
- }
|
|
|
-
|
|
|
- public function setCreatedBy(?int $createdBy): self
|
|
|
- {
|
|
|
- $this->createdBy = $createdBy;
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
}
|