123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <?php
- namespace AppBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Film
- *
- * @ORM\Table(name="film")
- * @ORM\Entity(repositoryClass="AppBundle\Repository\FilmRepository")
- */
- class Film
- {
- /**
- * @var int
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="titre", type="string", length=255)
- */
- private $titre;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="annee", type="date", nullable=true)
- */
- private $annee;
- /**
- * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Realisateur", inversedBy="films")
- */
- private $realisateur;
- /**
- * Get id
- *
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set titre
- *
- * @param string $titre
- *
- * @return Film
- */
- public function setTitre($titre)
- {
- $this->titre = $titre;
- return $this;
- }
- /**
- * Get titre
- *
- * @return string
- */
- public function getTitre()
- {
- return $this->titre;
- }
- /**
- * Set annee
- *
- * @param \DateTime $annee
- *
- * @return Film
- */
- public function setAnnee($annee)
- {
- $this->annee = $annee;
- return $this;
- }
- /**
- * Get annee
- *
- * @return \DateTime
- */
- public function getAnnee()
- {
- return $this->annee;
- }
- }
|