src/Entity/Articles.php line 14
<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;/*** @ORM\Entity(repositoryClass="App\Repository\ArticlesRepository")*/class Articles extends OSEntity{public function __construct(){parent::__construct();$this->hasGeneratedPdf = false;$this->isVisible = true;$this->isDeleted = false;}/*** @var bool** @ORM\Column(name="isOnFrontPage", type="boolean", nullable=true)*/private $isOnFrontPage;/*** @var bool** @ORM\Column(name="isVisible", type="boolean",nullable=true)*/private $isVisible;/*** @ORM\Column(name="isDeleted", type="boolean",nullable=true)*/private $isDeleted;/*** @ORM\Column(name="youtube", type="string", length=255, nullable=true)*/private $youtube;/*** @ORM\Column(name="flickr", type="string", length=255, nullable=true)*/private $flickr;/*** @ORM\Column(name="URL", type="string", length=255, nullable=true)*/private $URL;/*** @ORM\Column(name="soundcloud", type="string", length=255, nullable=true)*/private $soundcloud;/*** @ORM\ManyToOne(targetEntity="App\Entity\ArticlesCategories", inversedBy="articles", fetch="EAGER")* @ORM\JoinColumn(nullable=true)*/private $category;/*** @ORM\ManyToOne(targetEntity="App\Entity\ArticlesTypes",inversedBy="articles", fetch="EAGER")* @ORM\JoinColumn(nullable=true)*/private $type;/*** @ORM\OneToOne(targetEntity="App\Entity\Albums", cascade={"persist","remove"}, orphanRemoval=true, fetch="EAGER")* @ORM\JoinColumn(nullable=true)*/private $album;/*** @ORM\OneToOne(targetEntity="App\Entity\Biblios", cascade={"persist","remove"}, orphanRemoval=true, fetch="EAGER")* @ORM\JoinColumn(nullable=true)*/private $biblio;/*** @var bool** @ORM\Column(name="hasGeneratedPdf", type="boolean", nullable=true)*/private $hasGeneratedPdf;/*** @ORM\OneToOne(targetEntity="App\Entity\Picture", cascade={"persist","remove"}, orphanRemoval=true, fetch="EAGER")* @ORM\JoinColumn(nullable=true)*/private $qrcode;/*** @ORM\OneToOne(targetEntity="App\Entity\File", cascade={"persist","remove"}, orphanRemoval=true, fetch="EAGER")* @ORM\JoinColumn(nullable=true)*/private $generatedPdf;public function getIsOnFrontPage(): ?bool{return $this->isOnFrontPage;}public function setIsOnFrontPage(?bool $isOnFrontPage): self{$this->isOnFrontPage = $isOnFrontPage;return $this;}public function getIsVisible(): ?bool{return $this->isVisible;}public function setIsVisible(?bool $isVisible): self{$this->isVisible = $isVisible;return $this;}public function getIsDeleted(): ?bool{return $this->isDeleted;}public function setIsDeleted(?bool $isDeleted): self{$this->isDeleted = $isDeleted;return $this;}public function getYoutube(): ?string{return $this->youtube;}public function setYoutube(?string $youtube): self{$this->youtube = $youtube;return $this;}public function getFlickr(): ?string{return $this->flickr;}public function setFlickr(?string $flickr): self{$this->flickr = $flickr;return $this;}public function getURL(): ?string{return $this->URL;}public function setURL(?string $URL): self{$this->URL = $URL;return $this;}public function getSoundcloud(): ?string{return $this->soundcloud;}public function setSoundcloud(?string $soundcloud): self{$this->soundcloud = $soundcloud;return $this;}public function getCategory(): ?ArticlesCategories{return $this->category;}public function setCategory(?ArticlesCategories $category): self{$this->category = $category;return $this;}public function getAlbum(): ?Albums{return $this->album;}public function setAlbum(?Albums $album): self{$this->album = $album;return $this;}public function getBiblio(): ?Biblios{return $this->biblio;}public function setBiblio(?Biblios $biblio): self{$this->biblio = $biblio;return $this;}public function getType(): ?ArticlesTypes{return $this->type;}public function setType(?ArticlesTypes $type): self{$this->type = $type;return $this;}public function isHasGeneratedPdf(): ?bool{return $this->hasGeneratedPdf;}public function setHasGeneratedPdf(?bool $hasGeneratedPdf): self{$this->hasGeneratedPdf = $hasGeneratedPdf;return $this;}public function isIsOnFrontPage(): ?bool{return $this->isOnFrontPage;}public function isIsVisible(): ?bool{return $this->isVisible;}public function isIsDeleted(): ?bool{return $this->isDeleted;}public function getQrcode(): ?Picture{return $this->qrcode;}public function setQrcode(?Picture $qrcode): self{if($qrcode->getTarget()){$this->qrcode = $qrcode;$this->qrcode->setDir('upload/images/articles/');$this->qrcode->setThumbnailDir('upload/thumbnails/articles/');}// $this->qrcode = $qrcode;return $this;}public function getGeneratedPdf(): ?File{return $this->generatedPdf;}public function setGeneratedPdf(?File $generatedPdf): self{if($generatedPdf->getTarget()){$this->generatedPdf = $generatedPdf;$this->generatedPdf->setDir('upload/files/articles');}// $this->generatedPdf = $generatedPdf;return $this;}}