123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Commentaire
- *
- * @ORM\Table(name="commentaire")
- * @ORM\Entity(repositoryClass="App\Repository\CommentaireRepository")
- */
- class Commentaire
- {
- /**
- * @var int
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="contenu", type="text", length=191, nullable=true)
- */
- private $contenu;
- /**
- * @var int
- *
- * @ORM\Column(name="note", type="integer", nullable=true)
- *
- */
- private $note;
- /**
- * @ORM\ManyToOne(targetEntity="App\Entity\Film")
- * @ORM\JoinColumn(nullable=false)
- */
- private $film;
- /**
- * @ORM\ManyToOne(targetEntity="App\Entity\User")
- * @ORM\JoinColumn(nullable=false)
- */
- private $user;
- /**
- * Get id
- *
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set contenu
- *
- * @param string $contenu
- *
- * @return Commentaire
- */
- public function setContenu($contenu)
- {
- $this->contenu = $contenu;
- return $this;
- }
- /**
- * Get contenu
- *
- * @return string
- */
- public function getContenu()
- {
- return $this->contenu;
- }
- /**
- * @return int
- */
- public function getNote()
- {
- return $this->note;
- }
- /**
- * @param int $note
- */
- public function setNote($note)
- {
- $this->note = $note;
- }
- /**
- * Set film
- *
- * @param \App\Entity\Film $film
- *
- * @return Commentaire
- */
- public function setFilm(\App\Entity\Film $film)
- {
- $this->film = $film;
- return $this;
- }
- /**
- * Get film
- *
- * @return \App\Entity\Film
- */
- public function getFilm()
- {
- return $this->film;
- }
- /**
- * Set user
- *
- * @param \App\Entity\User $user
- *
- * @return Commentaire
- */
- public function setUser(\App\Entity\User $user)
- {
- $this->user = $user;
- return $this;
- }
- /**
- * Get user
- *
- * @return \App\Entity\User
- */
- public function getUser()
- {
- return $this->user;
- }
- }
|