true])] #[ORM\GeneratedValue(strategy: 'NONE')] protected ?string $id = null; public function getId(): ?string { return $this->id; } /** * @ORM\PrePersist() */ #[ORM\PrePersist] public function _generateId(): void { $this->id = uniqid(); } public function getDisplayName(): string { return $this->getName().' '.$this->getSurname(); } }