| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 | 
							- <?php
 
- namespace DocumentBundle\Entity;
 
- use Doctrine\ORM\Mapping as ORM;
 
- /**
 
-  * Auteur
 
-  *
 
-  * @ORM\Table(name="auteur")
 
-  * @ORM\Entity(repositoryClass="DocumentBundle\Repository\AuteurRepository")
 
-  */
 
- class Auteur
 
- {
 
-     /**
 
-      * @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;
 
-     /**
 
-      * @var string
 
-      *
 
-      * @ORM\Column(name="biographie", type="string", length=255)
 
-      */
 
-     private $biographie;
 
-     /**
 
-      * @var string
 
-      *
 
-      * @ORM\Column(name="genre", type="string", length=255)
 
-      */
 
-     private $genre;
 
-     /**
 
-      * @ORM\OneToMany(targetEntity="DocumentBundle\Entity\Livre", mappedBy="auteur")
 
-      * @var \Doctrine\Common\Collections\Collection
 
-      */
 
-     private $livres;
 
-     /**
 
-      * @ORM\OneToOne(targetEntity="DocumentBundle\Entity\Invite", mappedBy="auteur")
 
-      * @var \DocumentBundle\Entity\Invite
 
-      */
 
-     private $invite;
 
-     /**
 
-      * Get id
 
-      *
 
-      * @return int
 
-      */
 
-     public function getId()
 
-     {
 
-         return $this->id;
 
-     }
 
-     /**
 
-      * Set prenom.
 
-      *
 
-      * @param string $prenom
 
-      *
 
-      * @return Auteur
 
-      */
 
-     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 Auteur
 
-      */
 
-     public function setNom($nom)
 
-     {
 
-         $this->nom = $nom;
 
-         return $this;
 
-     }
 
-     /**
 
-      * Get nom.
 
-      *
 
-      * @return string
 
-      */
 
-     public function getNom()
 
-     {
 
-         return $this->nom;
 
-     }
 
-     /**
 
-      * Set biographie.
 
-      *
 
-      * @param string $biographie
 
-      *
 
-      * @return Auteur
 
-      */
 
-     public function setBiographie($biographie)
 
-     {
 
-         $this->biographie = $biographie;
 
-         return $this;
 
-     }
 
-     /**
 
-      * Get biographie.
 
-      *
 
-      * @return string
 
-      */
 
-     public function getBiographie()
 
-     {
 
-         return $this->biographie;
 
-     }
 
-     /**
 
-      * Set genre.
 
-      *
 
-      * @param string $genre
 
-      *
 
-      * @return Auteur
 
-      */
 
-     public function setGenre($genre)
 
-     {
 
-         $this->genre = $genre;
 
-         return $this;
 
-     }
 
-     /**
 
-      * Get genre.
 
-      *
 
-      * @return string
 
-      */
 
-     public function getGenre()
 
-     {
 
-         return $this->genre;
 
-     }
 
-     /**
 
-      * Constructor
 
-      */
 
-     public function __construct()
 
-     {
 
-         $this->livres = new \Doctrine\Common\Collections\ArrayCollection();
 
-     }
 
-     /**
 
-      * Add livre.
 
-      *
 
-      * @param \DocumentBundle\Entity\Livre $livre
 
-      *
 
-      * @return Auteur
 
-      */
 
-     public function addLivre(\DocumentBundle\Entity\Livre $livre)
 
-     {
 
-         $this->livres[] = $livre;
 
-         return $this;
 
-     }
 
-     /**
 
-      * Remove livre.
 
-      *
 
-      * @param \DocumentBundle\Entity\Livre $livre
 
-      *
 
-      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
 
-      */
 
-     public function removeLivre(\DocumentBundle\Entity\Livre $livre)
 
-     {
 
-         return $this->livres->removeElement($livre);
 
-     }
 
-     /**
 
-      * Get livres.
 
-      *
 
-      * @return \Doctrine\Common\Collections\Collection
 
-      */
 
-     public function getLivres()
 
-     {
 
-         return $this->livres;
 
-     }
 
-     /**
 
-      * Set invite.
 
-      *
 
-      * @param \DocumentBundle\Entity\Invite|null $invite
 
-      *
 
-      * @return Auteur
 
-      */
 
-     public function setInvite(\DocumentBundle\Entity\Invite $invite = null)
 
-     {
 
-         $this->invite = $invite;
 
-         return $this;
 
-     }
 
-     /**
 
-      * Get invite.
 
-      *
 
-      * @return \DocumentBundle\Entity\Invite|null
 
-      */
 
-     public function getInvite()
 
-     {
 
-         return $this->invite;
 
-     }
 
- }
 
 
  |