|
@@ -0,0 +1,142 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace AppBundle\Entity;
|
|
|
+
|
|
|
+use Doctrine\ORM\Mapping as ORM;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Realisateur
|
|
|
+ *
|
|
|
+ * @ORM\Table(name="realisateur")
|
|
|
+ * @ORM\Entity(repositoryClass="AppBundle\Repository\RealisateurRepository")
|
|
|
+ */
|
|
|
+class Realisateur
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * @var int
|
|
|
+ *
|
|
|
+ * @ORM\Column(name="id", type="integer")
|
|
|
+ * @ORM\Id
|
|
|
+ * @ORM\GeneratedValue(strategy="AUTO")
|
|
|
+ */
|
|
|
+ private $id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var string
|
|
|
+ *
|
|
|
+ * @ORM\Column(name="prenom", type="string", length=255)
|
|
|
+ */
|
|
|
+ private $prenom;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var string
|
|
|
+ *
|
|
|
+ * @ORM\Column(name="nom", type="string", length=255)
|
|
|
+ */
|
|
|
+ private $nom;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\OneToMany(targetEntity="AppBundle\Entity\Film", mappedBy="realisateur")
|
|
|
+ * @var \Doctrine\Common\Collections\Collection
|
|
|
+ */
|
|
|
+ private $films;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get id
|
|
|
+ *
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getId()
|
|
|
+ {
|
|
|
+ return $this->id;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Set prenom
|
|
|
+ *
|
|
|
+ * @param string $prenom
|
|
|
+ *
|
|
|
+ * @return Realisateur
|
|
|
+ */
|
|
|
+ public function setPrenom($prenom)
|
|
|
+ {
|
|
|
+ $this->prenom = $prenom;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get prenom
|
|
|
+ *
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
+ public function getPrenom()
|
|
|
+ {
|
|
|
+ return $this->prenom;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Set nom
|
|
|
+ *
|
|
|
+ * @param string $nom
|
|
|
+ *
|
|
|
+ * @return Realisateur
|
|
|
+ */
|
|
|
+ public function setNom($nom)
|
|
|
+ {
|
|
|
+ $this->nom = $nom;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get nom
|
|
|
+ *
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
+ public function getNom()
|
|
|
+ {
|
|
|
+ return $this->nom;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Constructor
|
|
|
+ */
|
|
|
+ public function __construct()
|
|
|
+ {
|
|
|
+ $this->films = new \Doctrine\Common\Collections\ArrayCollection();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add film
|
|
|
+ *
|
|
|
+ * @param \AppBundle\Entity\Film $film
|
|
|
+ *
|
|
|
+ * @return Realisateur
|
|
|
+ */
|
|
|
+ public function addFilm(\AppBundle\Entity\Film $film)
|
|
|
+ {
|
|
|
+ $this->films[] = $film;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Remove film
|
|
|
+ *
|
|
|
+ * @param \AppBundle\Entity\Film $film
|
|
|
+ */
|
|
|
+ public function removeFilm(\AppBundle\Entity\Film $film)
|
|
|
+ {
|
|
|
+ $this->films->removeElement($film);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get films
|
|
|
+ *
|
|
|
+ * @return \Doctrine\Common\Collections\Collection
|
|
|
+ */
|
|
|
+ public function getFilms()
|
|
|
+ {
|
|
|
+ return $this->films;
|
|
|
+ }
|
|
|
+}
|