Don't like ads? PRO users don't see any ads ;-)
Guest

metainfosquestion

By: a guest on Aug 1st, 2012  |  syntax: PHP  |  size: 0.64 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. namespace Elephant\Bundle\QuestionsBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8.  * Elephant\Bundle\QuestionsBundle\Entity\MetaInformationsQuestion
  9.  *
  10.  * @ORM\Table()
  11.  * @ORM\Entity(repositoryClass="Elephant\Bundle\QuestionsBundle\Entity\MetaInformationsQuestionRepository")
  12.  */
  13. class MetaInformationsQuestion
  14. {
  15.     /**
  16.      * @ORM\ManyToMany(targetEntity="Elephant\Bundle\ThematiquesBundle\Entity\Thematique", inversedBy="metainformationsquestions")
  17.      */
  18.     private $thematiques;
  19.  
  20.  
  21.     public function __construct()
  22.     {
  23.         $this->thematiques = new \Doctrine\Common\Collections\ArrayCollection();
  24.     }