vendor/theatre/core/src/Entity/Playlists.php line 13

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Playlists
  6.  *
  7.  * @ORM\Table(name="playlists", indexes={@ORM\Index(name="idextranetuser", columns={"idextranetuser"}), @ORM\Index(name="idspectacle", columns={"idspectacle"}), @ORM\Index(name="idperson", columns={"idperson"}), @ORM\Index(name="idcontact", columns={"idcontact"}), @ORM\Index(name="idtext", columns={"idtext"})})
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\PlaylistsRepository")
  9.  */
  10. class Playlists
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="idplaylist", type="integer", nullable=false, options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idplaylist;
  20.     /**
  21.      * @var string|null
  22.      *
  23.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  24.      */
  25.     private $title;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="description", type="text", length=65535, nullable=true)
  30.      */
  31.     private $description;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="url_clean", type="string", length=250, nullable=false)
  36.      */
  37.     private $urlClean;
  38.     /**
  39.      * @var \DateTime|null
  40.      *
  41.      * @ORM\Column(name="dateupdate", type="datetime", nullable=true)
  42.      */
  43.     private $dateupdate;
  44.     /**
  45.      * @var \DateTime|null
  46.      *
  47.      * @ORM\Column(name="dateinsert", type="datetime", nullable=true)
  48.      */
  49.     private $dateinsert;
  50.     /**
  51.      * @var bool
  52.      *
  53.      * @ORM\Column(name="publish", type="boolean", nullable=false, options={"default"="1"})
  54.      */
  55.     private $publish '1';
  56.     /**
  57.      * @var bool
  58.      *
  59.      * @ORM\Column(name="valid", type="boolean", nullable=false)
  60.      */
  61.     private $valid '0';
  62.     /**
  63.      * @var \Texts
  64.      *
  65.      * @ORM\ManyToOne(targetEntity="Texts")
  66.      * @ORM\JoinColumns({
  67.      *   @ORM\JoinColumn(name="idtext", referencedColumnName="idtext")
  68.      * })
  69.      */
  70.     private $idtext;
  71.     /**
  72.      * @var \Persons
  73.      *
  74.      * @ORM\ManyToOne(targetEntity="Persons")
  75.      * @ORM\JoinColumns({
  76.      *   @ORM\JoinColumn(name="idperson", referencedColumnName="idperson")
  77.      * })
  78.      */
  79.     private $idperson;
  80.     /**
  81.      * @var \Extranetusers
  82.      *
  83.      * @ORM\ManyToOne(targetEntity="Extranetusers")
  84.      * @ORM\JoinColumns({
  85.      *   @ORM\JoinColumn(name="idextranetuser", referencedColumnName="idextranetuser")
  86.      * })
  87.      */
  88.     private $idextranetuser;
  89.     /**
  90.      * @var \Contacts
  91.      *
  92.      * @ORM\ManyToOne(targetEntity="Contacts")
  93.      * @ORM\JoinColumns({
  94.      *   @ORM\JoinColumn(name="idcontact", referencedColumnName="idcontact")
  95.      * })
  96.      */
  97.     private $idcontact;
  98.     /**
  99.      * @var \Spectacles
  100.      *
  101.      * @ORM\ManyToOne(targetEntity="Spectacles")
  102.      * @ORM\JoinColumns({
  103.      *   @ORM\JoinColumn(name="idspectacle", referencedColumnName="idspectacle")
  104.      * })
  105.      */
  106.     private $idspectacle;
  107.     /**
  108.      * @var \Doctrine\Common\Collections\Collection
  109.      *
  110.      * @ORM\ManyToMany(targetEntity="Classifications", inversedBy="idplaylist")
  111.      * @ORM\JoinTable(name="playlist_classification",
  112.      *   joinColumns={
  113.      *     @ORM\JoinColumn(name="idplaylist", referencedColumnName="idplaylist")
  114.      *   },
  115.      *   inverseJoinColumns={
  116.      *     @ORM\JoinColumn(name="idclassification", referencedColumnName="idclassification")
  117.      *   }
  118.      * )
  119.      */
  120.     private $idclassification;
  121.     /**
  122.      * @var \Doctrine\Common\Collections\Collection
  123.      *
  124.      * @ORM\ManyToMany(targetEntity="Multimedias", inversedBy="idplaylist")
  125.      * @ORM\JoinTable(name="playlist_multimedia",
  126.      *   joinColumns={
  127.      *     @ORM\JoinColumn(name="idplaylist", referencedColumnName="idplaylist")
  128.      *   },
  129.      *   inverseJoinColumns={
  130.      *     @ORM\JoinColumn(name="idmultimedia", referencedColumnName="idmultimedia")
  131.      *   }
  132.      * )
  133.      */
  134.     private $idmultimedia;
  135.     /**
  136.      * Constructor
  137.      */
  138.     public function __construct()
  139.     {
  140.         $this->idclassification = new \Doctrine\Common\Collections\ArrayCollection();
  141.         $this->idmultimedia = new \Doctrine\Common\Collections\ArrayCollection();
  142.     }
  143.     /**
  144.      * Get idplaylist.
  145.      *
  146.      * @return int
  147.      */
  148.     public function getIdplaylist()
  149.     {
  150.         return $this->idplaylist;
  151.     }
  152.     /**
  153.      * Set title.
  154.      *
  155.      * @param string|null $title
  156.      *
  157.      * @return Playlists
  158.      */
  159.     public function setTitle($title null)
  160.     {
  161.         $this->title $title;
  162.         return $this;
  163.     }
  164.     /**
  165.      * Get title.
  166.      *
  167.      * @return string|null
  168.      */
  169.     public function getTitle()
  170.     {
  171.         return $this->title;
  172.     }
  173.     /**
  174.      * Set description.
  175.      *
  176.      * @param string|null $description
  177.      *
  178.      * @return Playlists
  179.      */
  180.     public function setDescription($description null)
  181.     {
  182.         $this->description $description;
  183.         return $this;
  184.     }
  185.     /**
  186.      * Get description.
  187.      *
  188.      * @return string|null
  189.      */
  190.     public function getDescription()
  191.     {
  192.         return $this->description;
  193.     }
  194.     /**
  195.      * Set urlClean.
  196.      *
  197.      * @param string $urlClean
  198.      *
  199.      * @return Playlists
  200.      */
  201.     public function setUrlClean($urlClean)
  202.     {
  203.         $this->urlClean $urlClean;
  204.         return $this;
  205.     }
  206.     /**
  207.      * Get urlClean.
  208.      *
  209.      * @return string
  210.      */
  211.     public function getUrlClean()
  212.     {
  213.         return $this->urlClean;
  214.     }
  215.     /**
  216.      * Set dateupdate.
  217.      *
  218.      * @param \DateTime|null $dateupdate
  219.      *
  220.      * @return Playlists
  221.      */
  222.     public function setDateupdate($dateupdate null)
  223.     {
  224.         $this->dateupdate $dateupdate;
  225.         return $this;
  226.     }
  227.     /**
  228.      * Get dateupdate.
  229.      *
  230.      * @return \DateTime|null
  231.      */
  232.     public function getDateupdate()
  233.     {
  234.         return $this->dateupdate;
  235.     }
  236.     /**
  237.      * Set dateinsert.
  238.      *
  239.      * @param \DateTime|null $dateinsert
  240.      *
  241.      * @return Playlists
  242.      */
  243.     public function setDateinsert($dateinsert null)
  244.     {
  245.         $this->dateinsert $dateinsert;
  246.         return $this;
  247.     }
  248.     /**
  249.      * Get dateinsert.
  250.      *
  251.      * @return \DateTime|null
  252.      */
  253.     public function getDateinsert()
  254.     {
  255.         return $this->dateinsert;
  256.     }
  257.     /**
  258.      * Set publish.
  259.      *
  260.      * @param bool $publish
  261.      *
  262.      * @return Playlists
  263.      */
  264.     public function setPublish($publish)
  265.     {
  266.         $this->publish $publish;
  267.         return $this;
  268.     }
  269.     /**
  270.      * Get publish.
  271.      *
  272.      * @return bool
  273.      */
  274.     public function getPublish()
  275.     {
  276.         return $this->publish;
  277.     }
  278.     /**
  279.      * Set valid.
  280.      *
  281.      * @param bool $valid
  282.      *
  283.      * @return Playlists
  284.      */
  285.     public function setValid($valid)
  286.     {
  287.         $this->valid $valid;
  288.         return $this;
  289.     }
  290.     /**
  291.      * Get valid.
  292.      *
  293.      * @return bool
  294.      */
  295.     public function getValid()
  296.     {
  297.         return $this->valid;
  298.     }
  299.     /**
  300.      * Set idtext.
  301.      *
  302.      * @param \Texts|null $idtext
  303.      *
  304.      * @return Playlists
  305.      */
  306.     public function setIdtext(Texts $idtext null)
  307.     {
  308.         $this->idtext $idtext;
  309.         return $this;
  310.     }
  311.     /**
  312.      * Get idtext.
  313.      *
  314.      * @return \Texts|null
  315.      */
  316.     public function getIdtext()
  317.     {
  318.         return $this->idtext;
  319.     }
  320.     /**
  321.      * Set idperson.
  322.      *
  323.      * @param \Persons|null $idperson
  324.      *
  325.      * @return Playlists
  326.      */
  327.     public function setIdperson(Persons $idperson null)
  328.     {
  329.         $this->idperson $idperson;
  330.         return $this;
  331.     }
  332.     /**
  333.      * Get idperson.
  334.      *
  335.      * @return \Persons|null
  336.      */
  337.     public function getIdperson()
  338.     {
  339.         return $this->idperson;
  340.     }
  341.     /**
  342.      * Set idextranetuser.
  343.      *
  344.      * @param \Extranetusers|null $idextranetuser
  345.      *
  346.      * @return Playlists
  347.      */
  348.     public function setIdextranetuser(Extranetusers $idextranetuser null)
  349.     {
  350.         $this->idextranetuser $idextranetuser;
  351.         return $this;
  352.     }
  353.     /**
  354.      * Get idextranetuser.
  355.      *
  356.      * @return \Extranetusers|null
  357.      */
  358.     public function getIdextranetuser()
  359.     {
  360.         return $this->idextranetuser;
  361.     }
  362.     /**
  363.      * Set idcontact.
  364.      *
  365.      * @param \Contacts|null $idcontact
  366.      *
  367.      * @return Playlists
  368.      */
  369.     public function setIdcontact(Contacts $idcontact null)
  370.     {
  371.         $this->idcontact $idcontact;
  372.         return $this;
  373.     }
  374.     /**
  375.      * Get idcontact.
  376.      *
  377.      * @return \Contacts|null
  378.      */
  379.     public function getIdcontact()
  380.     {
  381.         return $this->idcontact;
  382.     }
  383.     /**
  384.      * Set idspectacle.
  385.      *
  386.      * @param \Spectacles|null $idspectacle
  387.      *
  388.      * @return Playlists
  389.      */
  390.     public function setIdspectacle(Spectacles $idspectacle null)
  391.     {
  392.         $this->idspectacle $idspectacle;
  393.         return $this;
  394.     }
  395.     /**
  396.      * Get idspectacle.
  397.      *
  398.      * @return \Spectacles|null
  399.      */
  400.     public function getIdspectacle()
  401.     {
  402.         return $this->idspectacle;
  403.     }
  404.     /**
  405.      * Add idclassification.
  406.      *
  407.      * @param \Classifications $idclassification
  408.      *
  409.      * @return Playlists
  410.      */
  411.     public function addIdclassification(Classifications $idclassification)
  412.     {
  413.         $this->idclassification[] = $idclassification;
  414.         return $this;
  415.     }
  416.     /**
  417.      * Remove idclassification.
  418.      *
  419.      * @param \Classifications $idclassification
  420.      *
  421.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  422.      */
  423.     public function removeIdclassification(Classifications $idclassification)
  424.     {
  425.         return $this->idclassification->removeElement($idclassification);
  426.     }
  427.     /**
  428.      * Get idclassification.
  429.      *
  430.      * @return \Doctrine\Common\Collections\Collection
  431.      */
  432.     public function getIdclassification()
  433.     {
  434.         return $this->idclassification;
  435.     }
  436.     /**
  437.      * Add idmultimedia.
  438.      *
  439.      * @param \Multimedias $idmultimedia
  440.      *
  441.      * @return Playlists
  442.      */
  443.     public function addIdmultimedia(Multimedias $idmultimedia)
  444.     {
  445.         $this->idmultimedia[] = $idmultimedia;
  446.         return $this;
  447.     }
  448.     /**
  449.      * Remove idmultimedia.
  450.      *
  451.      * @param \Multimedias $idmultimedia
  452.      *
  453.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  454.      */
  455.     public function removeIdmultimedia(Multimedias $idmultimedia)
  456.     {
  457.         return $this->idmultimedia->removeElement($idmultimedia);
  458.     }
  459.     /**
  460.      * Get idmultimedia.
  461.      *
  462.      * @return \Doctrine\Common\Collections\Collection
  463.      */
  464.     public function getIdmultimedia()
  465.     {
  466.         return $this->idmultimedia;
  467.     }
  468. }