src/Entity/Document.php line 11
<?phpnamespace App\Entity;use App\Repository\DocumentRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Entity(repositoryClass: DocumentRepository::class)]#[Gedmo\SoftDeleteable(fieldName: 'deletedAt', timeAware: false)]class Document extends RootEntity{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: 'string', nullable: true)]private $title;#[ORM\Column(type: 'integer')]private $type = 0;#[ORM\ManyToOne]private ?Attachment $attachment = null;#[ORM\ManyToOne(inversedBy: 'documents')]private ?User $user = null;public function getId(): ?int{return $this->id;}public function getAttachment(): ?Attachment{return $this->attachment;}public function setAttachment(?Attachment $attachment): self{$this->attachment = $attachment;return $this;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): self{$this->user = $user;return $this;}public function getTitle(): ?string{return $this->title;}public function setTitle(?string $title): self{$this->title = $title;return $this;}public function getType(): ?int{return $this->type;}public function setType(int $type): self{$this->type = $type;return $this;}}