Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace MyProject\Bundle\QuestionsBundle\Entity;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity
- */
- class SessionDeJeuxUser
- {
- /**
- * @var integer $id
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @ORM\ManyToOne(targetEntity="MyProject\Bundle\UserBundle\Entity\User")
- */
- private $user;
- /**
- * @ORM\ManyToOne(targetEntity="MyProject\Bundle\QuestionsBundle\Entity\SessionDeJeux")
- */
- private $sessiondejeux;
- /**
- * @var datetime $created
- *
- * @Gedmo\Timestampable(on="create")
- * @ORM\Column(type="datetime")
- */
- private $created;
- /**
- * @var datetime $updated
- *
- * @Gedmo\Timestampable(on="update")
- * @ORM\Column(type="datetime")
- */
- private $updated;
- /**
- * @var array $score
- *
- * @ORM\Column(name="score", type="array", nullable="true")
- */
- private $score;
- public function getUser()
- {
- return $this->user;
- }
- public function setUser(\MyProject\Bundle\UserBundle\Entity\User $user)
- {
- $this->user = $user;
- }
- public function getSessionDeJeux()
- {
- return $this->sessiondejeux;
- }
- public function setSessionDeJeux(\MyProject\Bundle\QuestionsBundle\Entity\SessionDeJeux $sessiondejeux)
- {
- $this->sessiondejeux = $sessiondejeux;
- }
- public function getCreated()
- {
- return $this->created;
- }
- public function getUpdated()
- {
- return $this->updated;
- }
- /**
- * Set score
- *
- * @param array $score
- */
- public function setScore($score)
- {
- $this->score = $score;
- }
- /**
- * Get score
- *
- * @return array
- */
- public function getScore()
- {
- return $this->score;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement