Advertisement
Guest User

Untitled

a guest
Dec 27th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.93 KB | None | 0 0
  1.         <?php
  2.  
  3.     namespace MyProject\Bundle\QuestionsBundle\Entity;
  4.  
  5.     use Gedmo\Mapping\Annotation as Gedmo;
  6.     use Doctrine\ORM\Mapping as ORM;
  7.  
  8.     /**
  9.      * @ORM\Entity
  10.      */
  11.     class SessionDeJeuxUser
  12.     {
  13.  
  14.         /**
  15.          * @var integer $id
  16.          *
  17.          * @ORM\Column(name="id", type="integer")
  18.          * @ORM\Id
  19.          * @ORM\GeneratedValue(strategy="AUTO")
  20.          */
  21.         private $id;
  22.  
  23.       /**
  24.        * @ORM\ManyToOne(targetEntity="MyProject\Bundle\UserBundle\Entity\User")
  25.        */
  26.       private $user;
  27.  
  28.       /**
  29.        * @ORM\ManyToOne(targetEntity="MyProject\Bundle\QuestionsBundle\Entity\SessionDeJeux")
  30.        */
  31.       private $sessiondejeux;
  32.  
  33.       /**
  34.        * @var datetime $created
  35.        *
  36.        * @Gedmo\Timestampable(on="create")
  37.        * @ORM\Column(type="datetime")
  38.        */
  39.       private $created;
  40.  
  41.       /**
  42.        * @var datetime $updated
  43.        *
  44.        * @Gedmo\Timestampable(on="update")
  45.        * @ORM\Column(type="datetime")
  46.        */
  47.       private $updated;
  48.  
  49.       /**
  50.        * @var array $score
  51.        *
  52.        * @ORM\Column(name="score", type="array", nullable="true")
  53.        */
  54.       private $score;
  55.  
  56.  
  57.       public function getUser()
  58.       {
  59.           return $this->user;
  60.       }
  61.  
  62.       public function setUser(\MyProject\Bundle\UserBundle\Entity\User $user)
  63.       {
  64.           $this->user = $user;
  65.       }
  66.  
  67.       public function getSessionDeJeux()
  68.       {
  69.           return $this->sessiondejeux;
  70.       }
  71.  
  72.       public function setSessionDeJeux(\MyProject\Bundle\QuestionsBundle\Entity\SessionDeJeux $sessiondejeux)
  73.       {
  74.           $this->sessiondejeux = $sessiondejeux;
  75.       }
  76.  
  77.       public function getCreated()
  78.       {
  79.           return $this->created;
  80.       }
  81.  
  82.       public function getUpdated()
  83.       {
  84.           return $this->updated;
  85.       }
  86.  
  87.       /**
  88.        * Set score
  89.        *
  90.        * @param array $score
  91.        */
  92.       public function setScore($score)
  93.       {
  94.           $this->score = $score;
  95.       }
  96.  
  97.       /**
  98.        * Get score
  99.        *
  100.        * @return array
  101.        */
  102.       public function getScore()
  103.       {
  104.           return $this->score;
  105.       }
  106.  
  107.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement