src/Entity/DocxUploaded.php line 12
<?phpnamespace App\Entity;use App\Repository\DocxUploadedRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DocxUploadedRepository::class)]class DocxUploaded{public function className() {return "DocxUploaded";}#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $description = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $tags = null;#[ORM\ManyToOne]private ?File $file = null;#[ORM\OneToMany(mappedBy: 'fromDocx', targetEntity: DocxGenerated::class)]private Collection $generatedDocs;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private \DateTimeInterface $updateDate;#[ORM\ManyToOne(targetEntity: self::class)]private ?self $reference = null;#[ORM\ManyToOne(inversedBy: 'docxUploadeds')]private ?User $owner = null;#[ORM\Column(length: 255, nullable: true)]private ?string $title = null;public function __construct(){$this->generatedDocs = new ArrayCollection();$this->updateDate = new \DateTime();}public function getId(): ?int{return $this->id;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): self{$this->description = $description;return $this;}public function getTags(): ?string{return $this->tags;}public function setTags(?string $tags): self{$this->tags = $tags;return $this;}public function getFile(): ?File{return $this->file;}public function setFile(?File $file): self{$this->file = $file;return $this;}/*** @return Collection<int, DocxGenerated>*/public function getGeneratedDocs(): Collection{return $this->generatedDocs;}public function addGeneratedDoc(DocxGenerated $generatedDoc): self{if (!$this->generatedDocs->contains($generatedDoc)) {$this->generatedDocs->add($generatedDoc);$generatedDoc->setFromDocx($this);}return $this;}public function removeGeneratedDoc(DocxGenerated $generatedDoc): self{if ($this->generatedDocs->removeElement($generatedDoc)) {// set the owning side to null (unless already changed)if ($generatedDoc->getFromDocx() === $this) {$generatedDoc->setFromDocx(null);}}return $this;}public function getUpdateDate(): ?\DateTimeInterface{return $this->updateDate;}public function setUpdateDate(\DateTimeInterface $updateDate): self{$this->updateDate = $updateDate;return $this;}public function getReference(): ?self{return $this->reference;}public function setReference(?self $reference): self{$this->reference = $reference;return $this;}public function getOwner(): ?User{return $this->owner;}public function setOwner(?User $owner): self{$this->owner = $owner;return $this;}public function getTitle(): ?string{return $this->title;}public function setTitle(?string $title): self{$this->title = $title;return $this;}}