src/IUTUDC/WebsiteBundle/Entity/MediaPartenaire.php line 15

Open in your IDE?
  1. <?php
  2. namespace IUTUDC\WebsiteBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Kunstmaan\AdminBundle\Entity\AbstractEntity;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * MediaPartenaire
  8.  *
  9.  * @ORM\Table(name="iutudc_websitebundle_mediapartenaires")
  10.  * @ORM\Entity()
  11.  */
  12. class MediaPartenaire extends AbstractEntity
  13. {
  14.     /**
  15.      * @ORM\Column(name="name", type="string", length=100)
  16.      * @Assert\NotBlank()
  17.      */
  18.     private $name;
  19.     /**
  20.      * @var \Kunstmaan\MediaBundle\Entity\Media
  21.      *
  22.      * @ORM\ManyToOne(targetEntity="Kunstmaan\MediaBundle\Entity\Media")
  23.      * @ORM\JoinColumns({
  24.      *   @ORM\JoinColumn(name="image_id", referencedColumnName="id")
  25.      * })
  26.      */
  27.     protected $image;
  28.     
  29.     /**
  30.      * @var \IUTUDC\WebsiteBundle\Entity\FormationContinue
  31.      *
  32.      * @ORM\ManyToOne(targetEntity="\IUTUDC\WebsiteBundle\Entity\FormationContinue", inversedBy="partenaires")
  33.      * @ORM\JoinColumn(nullable=false)
  34.      * @Assert\NotNull()
  35.      */
  36.     private $formation;
  37.     /**
  38.      * Set name.
  39.      *
  40.      * @param string $name
  41.      *
  42.      * @return MediaPartenaire
  43.      */
  44.     public function setName($name)
  45.     {
  46.         $this->name $name;
  47.         return $this;
  48.     }
  49.     /**
  50.      * Get name.
  51.      *
  52.      * @return string
  53.      */
  54.     public function getName()
  55.     {
  56.         return $this->name;
  57.     }
  58.     /**
  59.      * @param \Kunstmaan\MediaBundle\Entity\Media $image
  60.      */
  61.     public function setImage(\Kunstmaan\MediaBundle\Entity\Media $image)
  62.     {
  63.         $this->image $image;
  64.     }
  65.     /**
  66.      * @return \Kunstmaan\MediaBundle\Entity\Media
  67.      */
  68.     public function getImage()
  69.     {
  70.         return $this->image;
  71.     }
  72.     /**
  73.      * @param \IUTUDC\WebsiteBundle\Entity\FormationContinue $formation
  74.      */
  75.     public function setFormation(\IUTUDC\WebsiteBundle\Entity\FormationContinue $formation)
  76.     {
  77.         $this->formation $formation;
  78.     }
  79.     /**
  80.      * @return \IUTUDC\WebsiteBundle\Entity\FormationContinue
  81.      */
  82.     public function getFormation()
  83.     {
  84.         return $this->formation;
  85.     }
  86. }