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

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * News
  6.  *
  7.  * @ORM\Table(name="news", indexes={@ORM\Index(name="idregion", columns={"idregion"}), @ORM\Index(name="type_news", columns={"type_news"}), @ORM\Index(name="publish", columns={"publish"}), @ORM\Index(name="zip", columns={"zip"}), @ORM\Index(name="idextranetuser", columns={"idextranetuser"}), @ORM\Index(name="country", columns={"country"}), @ORM\Index(name="valid", columns={"valid"})})
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\NewsRepository")
  9.  */
  10. class News
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="idnew", type="integer", nullable=false, options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idnew;
  20.     /**
  21.      * @var string|null
  22.      *
  23.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  24.      */
  25.     private $title;
  26.     /**
  27.      * @var bool
  28.      *
  29.      * @ORM\Column(name="type_news", type="boolean", nullable=false)
  30.      */
  31.     private $typeNews false;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="description", type="text", length=65535, nullable=true)
  36.      */
  37.     private $description;
  38.     /**
  39.      * @var bool|null
  40.      *
  41.      * @ORM\Column(name="markdown", type="boolean", nullable=true)
  42.      */
  43.     private $markdown false;
  44.     /**
  45.      * @var \DateTime|null
  46.      *
  47.      * @ORM\Column(name="date_start", type="datetime", nullable=true, options={"default"="0000-00-00 00:00:00"})
  48.      */
  49.     private $dateStart '0000-00-00 00:00:00';
  50.     /**
  51.      * @var \DateTime|null
  52.      *
  53.      * @ORM\Column(name="date_end", type="datetime", nullable=true)
  54.      */
  55.     private $dateEnd;
  56.     /**
  57.      * @var string|null
  58.      *
  59.      * @ORM\Column(name="hour", type="string", length=5, nullable=true)
  60.      */
  61.     private $hour;
  62.     /**
  63.      * @var string|null
  64.      *
  65.      * @ORM\Column(name="location", type="string", length=255, nullable=true)
  66.      */
  67.     private $location;
  68.     /**
  69.      * @var string|null
  70.      *
  71.      * @ORM\Column(name="city", type="string", length=255, nullable=true)
  72.      */
  73.     private $city;
  74.     /**
  75.      * @var string|null
  76.      *
  77.      * @ORM\Column(name="zip", type="string", length=20, nullable=true)
  78.      */
  79.     private $zip;
  80.     /**
  81.      * @var string|null
  82.      *
  83.      * @ORM\Column(name="contacts", type="string", length=255, nullable=true)
  84.      */
  85.     private $contacts;
  86.     /**
  87.      * @var string|null
  88.      *
  89.      * @ORM\Column(name="url", type="string", length=255, nullable=true)
  90.      */
  91.     private $url;
  92.     /**
  93.      * @var string|null
  94.      *
  95.      * @ORM\Column(name="url_more", type="string", length=255, nullable=true)
  96.      */
  97.     private $urlMore;
  98.     /**
  99.      * @var string|null
  100.      *
  101.      * @ORM\Column(name="infos_contacts", type="text", length=65535, nullable=true)
  102.      */
  103.     private $infosContacts;
  104.     /**
  105.      * @var string|null
  106.      *
  107.      * @ORM\Column(name="url_file", type="string", length=255, nullable=true)
  108.      */
  109.     private $urlFile;
  110.     /**
  111.      * @var string|null
  112.      *
  113.      * @ORM\Column(name="copyright_file", type="string", length=255, nullable=true)
  114.      */
  115.     private $copyrightFile;
  116.     /**
  117.      * @var bool|null
  118.      *
  119.      * @ORM\Column(name="is_homepage", type="boolean", nullable=true)
  120.      */
  121.     private $isHomepage false;
  122.     /**
  123.      * @var bool
  124.      *
  125.      * @ORM\Column(name="publish", type="boolean", nullable=false)
  126.      */
  127.     private $publish false;
  128.     /**
  129.      * @var bool
  130.      *
  131.      * @ORM\Column(name="valid", type="boolean", nullable=false)
  132.      */
  133.     private $valid false;
  134.     /**
  135.      * @var bool
  136.      *
  137.      * @ORM\Column(name="statut", type="boolean", nullable=false)
  138.      */
  139.     private $statut false;
  140.     /**
  141.      * @var \DateTime
  142.      *
  143.      * @ORM\Column(name="dateinsert", type="datetime", nullable=false, options={"default"="0000-00-00 00:00:00"})
  144.      */
  145.     private $dateinsert '0000-00-00 00:00:00';
  146.     /**
  147.      * @var \DateTime|null
  148.      *
  149.      * @ORM\Column(name="dateupdate", type="datetime", nullable=true, options={"default"="0000-00-00 00:00:00"})
  150.      */
  151.     private $dateupdate '0000-00-00 00:00:00';
  152.     /**
  153.      * @var int|null
  154.      *
  155.      * @ORM\Column(name="idextranetuser_lock", type="integer", nullable=true)
  156.      */
  157.     private $idextranetuserLock;
  158.     /**
  159.      * @var \Extranetusers
  160.      *
  161.      * @ORM\ManyToOne(targetEntity="Extranetusers")
  162.      * @ORM\JoinColumns({
  163.      *   @ORM\JoinColumn(name="idextranetuser", referencedColumnName="idextranetuser")
  164.      * })
  165.      */
  166.     private $idextranetuser;
  167.     /**
  168.      * @var \Regions
  169.      *
  170.      * @ORM\ManyToOne(targetEntity="Regions")
  171.      * @ORM\JoinColumns({
  172.      *   @ORM\JoinColumn(name="idregion", referencedColumnName="idregion")
  173.      * })
  174.      */
  175.     private $idregion;
  176.     /**
  177.      * @var \Countries
  178.      *
  179.      * @ORM\ManyToOne(targetEntity="Countries")
  180.      * @ORM\JoinColumns({
  181.      *   @ORM\JoinColumn(name="country", referencedColumnName="id")
  182.      * })
  183.      */
  184.     private $country;
  185.     /**
  186.      * @var \Doctrine\Common\Collections\Collection
  187.      *
  188.      * @ORM\ManyToMany(targetEntity="Contacts", inversedBy="idnew")
  189.      * @ORM\JoinTable(name="new_contact",
  190.      *   joinColumns={
  191.      *     @ORM\JoinColumn(name="idnew", referencedColumnName="idnew")
  192.      *   },
  193.      *   inverseJoinColumns={
  194.      *     @ORM\JoinColumn(name="idcontact", referencedColumnName="idcontact")
  195.      *   }
  196.      * )
  197.      */
  198.     private $idcontact;
  199.     /**
  200.      * @var \Doctrine\Common\Collections\Collection
  201.      *
  202.      * @ORM\ManyToMany(targetEntity="Persons", inversedBy="idnew")
  203.      * @ORM\JoinTable(name="new_person",
  204.      *   joinColumns={
  205.      *     @ORM\JoinColumn(name="idnew", referencedColumnName="idnew")
  206.      *   },
  207.      *   inverseJoinColumns={
  208.      *     @ORM\JoinColumn(name="idperson", referencedColumnName="idperson")
  209.      *   }
  210.      * )
  211.      */
  212.     private $idperson;
  213.     /**
  214.      * @var \Doctrine\Common\Collections\Collection
  215.      *
  216.      * @ORM\ManyToMany(targetEntity="Spectacles", inversedBy="idnew")
  217.      * @ORM\JoinTable(name="new_spectacle",
  218.      *   joinColumns={
  219.      *     @ORM\JoinColumn(name="idnew", referencedColumnName="idnew")
  220.      *   },
  221.      *   inverseJoinColumns={
  222.      *     @ORM\JoinColumn(name="idspectacle", referencedColumnName="idspectacle")
  223.      *   }
  224.      * )
  225.      */
  226.     private $idspectacle;
  227.     /**
  228.      * @var \Doctrine\Common\Collections\Collection
  229.      *
  230.      * @ORM\ManyToMany(targetEntity="Texts", inversedBy="idnew")
  231.      * @ORM\JoinTable(name="new_text",
  232.      *   joinColumns={
  233.      *     @ORM\JoinColumn(name="idnew", referencedColumnName="idnew")
  234.      *   },
  235.      *   inverseJoinColumns={
  236.      *     @ORM\JoinColumn(name="idtext", referencedColumnName="idtext")
  237.      *   }
  238.      * )
  239.      */
  240.     private $idtext;
  241.     /**
  242.      * @var \Doctrine\Common\Collections\Collection
  243.      *
  244.      * @ORM\OneToMany(targetEntity="Newschedules", mappedBy="idnew")
  245.      *
  246.      */
  247.     private $schedules;
  248.     /**
  249.      * Constructor
  250.      */
  251.     public function __construct()
  252.     {
  253.         $this->idcontact = new \Doctrine\Common\Collections\ArrayCollection();
  254.         $this->idperson = new \Doctrine\Common\Collections\ArrayCollection();
  255.         $this->idspectacle = new \Doctrine\Common\Collections\ArrayCollection();
  256.         $this->idtext = new \Doctrine\Common\Collections\ArrayCollection();
  257.         $this->schedules = new \Doctrine\Common\Collections\ArrayCollection();
  258.     }
  259.     /**
  260.      * Get idnew.
  261.      *
  262.      * @return int
  263.      */
  264.     public function getIdnew()
  265.     {
  266.         return $this->idnew;
  267.     }
  268.     /**
  269.      * Set title.
  270.      *
  271.      * @param string|null $title
  272.      *
  273.      * @return News
  274.      */
  275.     public function setTitle($title null)
  276.     {
  277.         $this->title $title;
  278.         return $this;
  279.     }
  280.     /**
  281.      * Get title.
  282.      *
  283.      * @return string|null
  284.      */
  285.     public function getTitle()
  286.     {
  287.         return $this->title;
  288.     }
  289.     /**
  290.      * Set typeNews.
  291.      *
  292.      * @param bool $typeNews
  293.      *
  294.      * @return News
  295.      */
  296.     public function setTypeNews($typeNews)
  297.     {
  298.         $this->typeNews $typeNews;
  299.         return $this;
  300.     }
  301.     /**
  302.      * Get typeNews.
  303.      *
  304.      * @return bool
  305.      */
  306.     public function getTypeNews()
  307.     {
  308.         return $this->typeNews;
  309.     }
  310.     /**
  311.      * Set description.
  312.      *
  313.      * @param string|null $description
  314.      *
  315.      * @return News
  316.      */
  317.     public function setDescription($description null)
  318.     {
  319.         $this->description $description;
  320.         return $this;
  321.     }
  322.     /**
  323.      * Get description.
  324.      *
  325.      * @return string|null
  326.      */
  327.     public function getDescription()
  328.     {
  329.         return $this->description;
  330.     }
  331.     /**
  332.      * Set markdown.
  333.      *
  334.      * @param bool|null $markdown
  335.      *
  336.      * @return News
  337.      */
  338.     public function setMarkdown($markdown null)
  339.     {
  340.         $this->markdown $markdown;
  341.         return $this;
  342.     }
  343.     /**
  344.      * Get markdown.
  345.      *
  346.      * @return bool|null
  347.      */
  348.     public function getMarkdown()
  349.     {
  350.         return $this->markdown;
  351.     }
  352.     /**
  353.      * Set dateStart.
  354.      *
  355.      * @param \DateTime|null $dateStart
  356.      *
  357.      * @return News
  358.      */
  359.     public function setDateStart($dateStart null)
  360.     {
  361.         $this->dateStart $dateStart;
  362.         return $this;
  363.     }
  364.     /**
  365.      * Get dateStart.
  366.      *
  367.      * @return \DateTime|null
  368.      */
  369.     public function getDateStart()
  370.     {
  371.         return $this->dateStart;
  372.     }
  373.     /**
  374.      * Set dateEnd.
  375.      *
  376.      * @param \DateTime|null $dateEnd
  377.      *
  378.      * @return News
  379.      */
  380.     public function setDateEnd($dateEnd null)
  381.     {
  382.         $this->dateEnd $dateEnd;
  383.         return $this;
  384.     }
  385.     /**
  386.      * Get dateEnd.
  387.      *
  388.      * @return \DateTime|null
  389.      */
  390.     public function getDateEnd()
  391.     {
  392.         return $this->dateEnd;
  393.     }
  394.     /**
  395.      * Set hour.
  396.      *
  397.      * @param string|null $hour
  398.      *
  399.      * @return News
  400.      */
  401.     public function setHour($hour null)
  402.     {
  403.         $this->hour $hour;
  404.         return $this;
  405.     }
  406.     /**
  407.      * Get hour.
  408.      *
  409.      * @return string|null
  410.      */
  411.     public function getHour()
  412.     {
  413.         return $this->hour;
  414.     }
  415.     /**
  416.      * Set location.
  417.      *
  418.      * @param string|null $location
  419.      *
  420.      * @return News
  421.      */
  422.     public function setLocation($location null)
  423.     {
  424.         $this->location $location;
  425.         return $this;
  426.     }
  427.     /**
  428.      * Get location.
  429.      *
  430.      * @return string|null
  431.      */
  432.     public function getLocation()
  433.     {
  434.         return $this->location;
  435.     }
  436.     /**
  437.      * Set city.
  438.      *
  439.      * @param string|null $city
  440.      *
  441.      * @return News
  442.      */
  443.     public function setCity($city null)
  444.     {
  445.         $this->city $city;
  446.         return $this;
  447.     }
  448.     /**
  449.      * Get city.
  450.      *
  451.      * @return string|null
  452.      */
  453.     public function getCity()
  454.     {
  455.         return $this->city;
  456.     }
  457.     /**
  458.      * Set zip.
  459.      *
  460.      * @param string|null $zip
  461.      *
  462.      * @return News
  463.      */
  464.     public function setZip($zip null)
  465.     {
  466.         $this->zip $zip;
  467.         return $this;
  468.     }
  469.     /**
  470.      * Get zip.
  471.      *
  472.      * @return string|null
  473.      */
  474.     public function getZip()
  475.     {
  476.         return $this->zip;
  477.     }
  478.     /**
  479.      * Set contacts.
  480.      *
  481.      * @param string|null $contacts
  482.      *
  483.      * @return News
  484.      */
  485.     public function setContacts($contacts null)
  486.     {
  487.         $this->contacts $contacts;
  488.         return $this;
  489.     }
  490.     /**
  491.      * Get contacts.
  492.      *
  493.      * @return string|null
  494.      */
  495.     public function getContacts()
  496.     {
  497.         return $this->contacts;
  498.     }
  499.     /**
  500.      * Set url.
  501.      *
  502.      * @param string|null $url
  503.      *
  504.      * @return News
  505.      */
  506.     public function setUrl($url null)
  507.     {
  508.         $this->url $url;
  509.         return $this;
  510.     }
  511.     /**
  512.      * Get url.
  513.      *
  514.      * @return string|null
  515.      */
  516.     public function getUrl()
  517.     {
  518.         return $this->url;
  519.     }
  520.     /**
  521.      * Set urlMore.
  522.      *
  523.      * @param string|null $urlMore
  524.      *
  525.      * @return News
  526.      */
  527.     public function setUrlMore($urlMore null)
  528.     {
  529.         $this->urlMore $urlMore;
  530.         return $this;
  531.     }
  532.     /**
  533.      * Get urlMore.
  534.      *
  535.      * @return string|null
  536.      */
  537.     public function getUrlMore()
  538.     {
  539.         return $this->urlMore;
  540.     }
  541.     /**
  542.      * Set infosContacts.
  543.      *
  544.      * @param string|null $infosContacts
  545.      *
  546.      * @return News
  547.      */
  548.     public function setInfosContacts($infosContacts null)
  549.     {
  550.         $this->infosContacts $infosContacts;
  551.         return $this;
  552.     }
  553.     /**
  554.      * Get infosContacts.
  555.      *
  556.      * @return string|null
  557.      */
  558.     public function getInfosContacts()
  559.     {
  560.         return $this->infosContacts;
  561.     }
  562.     /**
  563.      * Set urlFile.
  564.      *
  565.      * @param string|null $urlFile
  566.      *
  567.      * @return News
  568.      */
  569.     public function setUrlFile($urlFile null)
  570.     {
  571.         $this->urlFile $urlFile;
  572.         return $this;
  573.     }
  574.     /**
  575.      * Get urlFile.
  576.      *
  577.      * @return string|null
  578.      */
  579.     public function getUrlFile()
  580.     {
  581.         return $this->urlFile;
  582.     }
  583.     /**
  584.      * Set copyrightFile.
  585.      *
  586.      * @param string|null $copyrightFile
  587.      *
  588.      * @return News
  589.      */
  590.     public function setCopyrightFile($copyrightFile null)
  591.     {
  592.         $this->copyrightFile $copyrightFile;
  593.         return $this;
  594.     }
  595.     /**
  596.      * Get copyrightFile.
  597.      *
  598.      * @return string|null
  599.      */
  600.     public function getCopyrightFile()
  601.     {
  602.         return $this->copyrightFile;
  603.     }
  604.     /**
  605.      * Set isHomepage.
  606.      *
  607.      * @param bool|null $isHomepage
  608.      *
  609.      * @return News
  610.      */
  611.     public function setIsHomepage($isHomepage null)
  612.     {
  613.         $this->isHomepage $isHomepage;
  614.         return $this;
  615.     }
  616.     /**
  617.      * Get isHomepage.
  618.      *
  619.      * @return bool|null
  620.      */
  621.     public function getIsHomepage()
  622.     {
  623.         return $this->isHomepage;
  624.     }
  625.     /**
  626.      * Set publish.
  627.      *
  628.      * @param bool $publish
  629.      *
  630.      * @return News
  631.      */
  632.     public function setPublish($publish)
  633.     {
  634.         $this->publish $publish;
  635.         return $this;
  636.     }
  637.     /**
  638.      * Get publish.
  639.      *
  640.      * @return bool
  641.      */
  642.     public function getPublish()
  643.     {
  644.         return $this->publish;
  645.     }
  646.     /**
  647.      * Set valid.
  648.      *
  649.      * @param bool $valid
  650.      *
  651.      * @return News
  652.      */
  653.     public function setValid($valid)
  654.     {
  655.         $this->valid $valid;
  656.         return $this;
  657.     }
  658.     /**
  659.      * Get valid.
  660.      *
  661.      * @return bool
  662.      */
  663.     public function getValid()
  664.     {
  665.         return $this->valid;
  666.     }
  667.     /**
  668.      * Set statut.
  669.      *
  670.      * @param bool $statut
  671.      *
  672.      * @return News
  673.      */
  674.     public function setStatut($statut)
  675.     {
  676.         $this->statut $statut;
  677.         return $this;
  678.     }
  679.     /**
  680.      * Get statut.
  681.      *
  682.      * @return bool
  683.      */
  684.     public function getStatut()
  685.     {
  686.         return $this->statut;
  687.     }
  688.     /**
  689.      * Set dateinsert.
  690.      *
  691.      * @param \DateTime $dateinsert
  692.      *
  693.      * @return News
  694.      */
  695.     public function setDateinsert($dateinsert)
  696.     {
  697.         $this->dateinsert $dateinsert;
  698.         return $this;
  699.     }
  700.     /**
  701.      * Get dateinsert.
  702.      *
  703.      * @return \DateTime
  704.      */
  705.     public function getDateinsert()
  706.     {
  707.         return $this->dateinsert;
  708.     }
  709.     /**
  710.      * Set dateupdate.
  711.      *
  712.      * @param \DateTime|null $dateupdate
  713.      *
  714.      * @return News
  715.      */
  716.     public function setDateupdate($dateupdate null)
  717.     {
  718.         $this->dateupdate $dateupdate;
  719.         return $this;
  720.     }
  721.     /**
  722.      * Get dateupdate.
  723.      *
  724.      * @return \DateTime|null
  725.      */
  726.     public function getDateupdate()
  727.     {
  728.         return $this->dateupdate;
  729.     }
  730.     /**
  731.      * Set idextranetuserLock.
  732.      *
  733.      * @param int|null $idextranetuserLock
  734.      *
  735.      * @return News
  736.      */
  737.     public function setIdextranetuserLock($idextranetuserLock null)
  738.     {
  739.         $this->idextranetuserLock $idextranetuserLock;
  740.         return $this;
  741.     }
  742.     /**
  743.      * Get idextranetuserLock.
  744.      *
  745.      * @return int|null
  746.      */
  747.     public function getIdextranetuserLock()
  748.     {
  749.         return $this->idextranetuserLock;
  750.     }
  751.     /**
  752.      * Set idextranetuser.
  753.      *
  754.      * @param \Extranetusers|null $idextranetuser
  755.      *
  756.      * @return News
  757.      */
  758.     public function setIdextranetuser(Extranetusers $idextranetuser null)
  759.     {
  760.         $this->idextranetuser $idextranetuser;
  761.         return $this;
  762.     }
  763.     /**
  764.      * Get idextranetuser.
  765.      *
  766.      * @return \Extranetusers|null
  767.      */
  768.     public function getIdextranetuser()
  769.     {
  770.         return $this->idextranetuser;
  771.     }
  772.     /**
  773.      * Set idregion.
  774.      *
  775.      * @param \Regions|null $idregion
  776.      *
  777.      * @return News
  778.      */
  779.     public function setIdregion(Regions $idregion null)
  780.     {
  781.         $this->idregion $idregion;
  782.         return $this;
  783.     }
  784.     /**
  785.      * Get idregion.
  786.      *
  787.      * @return \Regions|null
  788.      */
  789.     public function getIdregion()
  790.     {
  791.         return $this->idregion;
  792.     }
  793.     /**
  794.      * Set country.
  795.      *
  796.      * @param \Countries|null $country
  797.      *
  798.      * @return News
  799.      */
  800.     public function setCountry(Countries $country null)
  801.     {
  802.         $this->country $country;
  803.         return $this;
  804.     }
  805.     /**
  806.      * Get country.
  807.      *
  808.      * @return \Countries|null
  809.      */
  810.     public function getCountry()
  811.     {
  812.         return $this->country;
  813.     }
  814.     /**
  815.      * Add idcontact.
  816.      *
  817.      * @param \Contacts $idcontact
  818.      *
  819.      * @return News
  820.      */
  821.     public function addIdcontact(Contacts $idcontact)
  822.     {
  823.         $this->idcontact[] = $idcontact;
  824.         return $this;
  825.     }
  826.     /**
  827.      * Remove idcontact.
  828.      *
  829.      * @param \Contacts $idcontact
  830.      *
  831.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  832.      */
  833.     public function removeIdcontact(Contacts $idcontact)
  834.     {
  835.         return $this->idcontact->removeElement($idcontact);
  836.     }
  837.     /**
  838.      * Get idcontact.
  839.      *
  840.      * @return \Doctrine\Common\Collections\Collection
  841.      */
  842.     public function getIdcontact()
  843.     {
  844.         return $this->idcontact;
  845.     }
  846.     /**
  847.      * Add idperson.
  848.      *
  849.      * @param \Persons $idperson
  850.      *
  851.      * @return News
  852.      */
  853.     public function addIdperson(Persons $idperson)
  854.     {
  855.         $this->idperson[] = $idperson;
  856.         return $this;
  857.     }
  858.     /**
  859.      * Remove idperson.
  860.      *
  861.      * @param \Persons $idperson
  862.      *
  863.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  864.      */
  865.     public function removeIdperson(Persons $idperson)
  866.     {
  867.         return $this->idperson->removeElement($idperson);
  868.     }
  869.     /**
  870.      * Get idperson.
  871.      *
  872.      * @return \Doctrine\Common\Collections\Collection
  873.      */
  874.     public function getIdperson()
  875.     {
  876.         return $this->idperson;
  877.     }
  878.     /**
  879.      * Add idspectacle.
  880.      *
  881.      * @param \Spectacles $idspectacle
  882.      *
  883.      * @return News
  884.      */
  885.     public function addIdspectacle(Persons $idspectacle)
  886.     {
  887.         $this->idspectacle[] = $idspectacle;
  888.         return $this;
  889.     }
  890.     /**
  891.      * Remove idspectacle.
  892.      *
  893.      * @param \Spectacles $idspectacle
  894.      *
  895.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  896.      */
  897.     public function removeIdspectacle(Persons $idspectacle)
  898.     {
  899.         return $this->idspectacle->removeElement($idspectacle);
  900.     }
  901.     /**
  902.      * Get idspectacle.
  903.      *
  904.      * @return \Doctrine\Common\Collections\Collection
  905.      */
  906.     public function getIdspectacle()
  907.     {
  908.         return $this->idspectacle;
  909.     }
  910.     //début
  911.     /**
  912.      * Add idtext.
  913.      *
  914.      * @param \Texts $idtext
  915.      *
  916.      * @return News
  917.      */
  918.     public function addIdtext(Persons $idtext)
  919.     {
  920.         $this->idtext[] = $idtext;
  921.         return $this;
  922.     }
  923.     /**
  924.      * Remove idtext.
  925.      *
  926.      * @param \Texts $idtext
  927.      *
  928.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  929.      */
  930.     public function removeIdtext(Persons $idtext)
  931.     {
  932.         return $this->idtext->removeElement($idtext);
  933.     }
  934.     /**
  935.      * Get idtext.
  936.      *
  937.      * @return \Doctrine\Common\Collections\Collection
  938.      */
  939.     public function getIdtext()
  940.     {
  941.         return $this->idtext;
  942.     }
  943.     //fin
  944.     /**
  945.      * Add idperson.
  946.      *
  947.      * @param \Schedules $idperson
  948.      *
  949.      * @return News
  950.      */
  951.     public function addSchedules(Schedules $schedules)
  952.     {
  953.         $this->schedules[] = $schedules;
  954.         return $this;
  955.     }
  956.     /**
  957.      * Remove schedules.
  958.      *
  959.      * @param \Schedules $schedules
  960.      *
  961.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  962.      */
  963.     public function removeSchedules(Schedules $schedules)
  964.     {
  965.         return $this->schedules->removeElement($schedules);
  966.     }
  967.     /**
  968.      * Get schedules.
  969.      *
  970.      * @return \Doctrine\Common\Collections\Collection
  971.      */
  972.     public function getSchedules()
  973.     {
  974.         return $this->schedules;
  975.     }
  976. }