src/Entity/Videos.php line 13
<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;/*** @ORM\Entity(repositoryClass="App\Repository\VideosRepository")*/class Videos extends OSEntity{/*** @ORM\Column(name="youtube", type="string", length=255, nullable=true)*/private $youtube;/*** @ORM\OneToOne(targetEntity="App\Entity\File", cascade={"persist","remove"}, orphanRemoval=true)* @ORM\JoinColumn(nullable=true)*/private $file;/*** @ORM\OneToOne(targetEntity="App\Entity\Biblios", cascade={"persist","remove"}, orphanRemoval=true)* @ORM\JoinColumn(nullable=true)*/private $biblio;/*** @ORM\ManyToOne(targetEntity="App\Entity\VideosCategories", fetch="EAGER")* @ORM\JoinColumn(nullable=true)*/private $category;public function getYoutube(): ?string{return $this->youtube;}public function setYoutube(?string $youtube): self{$this->youtube = $youtube;return $this;}public function getFile(): ?File{return $this->file;}public function setFile(?File $file): self{if($file->getTarget()){$this->file = $file;$this->file->setDir('upload/videos');}return $this;}public function getBiblio(): ?Biblios{return $this->biblio;}public function setBiblio(?Biblios $biblio): self{$this->biblio = $biblio;return $this;}public function getCategory(): ?VideosCategories{return $this->category;}public function setCategory(?VideosCategories $category): self{$this->category = $category;return $this;}}