src/Entity/Biblios.php line 12
<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/*** @ORM\Entity(repositoryClass="App\Repository\BibliosRepository")*/class Biblios{private $dir = 'upload/files/biblios/';private $validsMimetypes = [];public function __construct(){// $this->documents = new \Doctrine\Common\Collections\ArrayCollection();$this->validsMimetypes;$this->files = new ArrayCollection();}public function getDir(): ?string{return $this->dir;}public function setDir(?string $dir): self{$this->dir = $dir;return $this;}public function setValidsMimetypes(?array $mimetypes): self{$this->validsMimetypes = $mimetypes;return $this;}public function getValidsMimetypes(): ?array{return $this->validsMimetypes;}/*** @ORM\Column(name="id", type="integer")* @ORM\Id* @ORM\GeneratedValue(strategy="AUTO")*/private $id;/*** @ORM\Column(name="title", type="string", length=255, nullable=true)*/private $title;/*** @ORM\Column(name="isEnabled",type="boolean", nullable=true)*/private $isEnabled;/*** @ORM\ManyToMany(targetEntity=File::class, cascade={"persist","remove"})*/private $files;public function getId(): ?int{return $this->id;}public function getTitle(): ?string{return $this->title;}public function setTitle(?string $title): self{$this->title = $title;return $this;}public function getIsEnabled(): ?bool{return $this->isEnabled;}public function setIsEnabled(?bool $isEnabled): self{$this->isEnabled = $isEnabled;return $this;}/*** @return Collection|File[]*/public function getFiles(): Collection{return $this->files;}public function addFile(File $file): self{if ($file && !$this->files->contains($file)) {$file->setDir($this->getDir());$this->files[] = $file;}return $this;}public function removeFile(File $file): self{$this->files->removeElement($file);return $this;}}