| @@ 7-22 (lines=16) @@ | ||
| 4 | ||
| 5 | use PlaygroundGame\Mapper\AbstractMapper; |
|
| 6 | ||
| 7 | class PostVoteForm extends AbstractMapper |
|
| 8 | { |
|
| 9 | public function findByGame($game) |
|
| 10 | { |
|
| 11 | return $this->getEntityRepository()->findOneBy(array('postvote' => $game)); |
|
| 12 | } |
|
| 13 | ||
| 14 | public function getEntityRepository() |
|
| 15 | { |
|
| 16 | if (null === $this->er) { |
|
| 17 | $this->er = $this->em->getRepository('PlaygroundGame\Entity\PostVoteForm'); |
|
| 18 | } |
|
| 19 | ||
| 20 | return $this->er; |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||
| @@ 7-22 (lines=16) @@ | ||
| 4 | ||
| 5 | use PlaygroundGame\Mapper\AbstractMapper; |
|
| 6 | ||
| 7 | class PostVotePost extends AbstractMapper |
|
| 8 | { |
|
| 9 | public function findByGameId($post_vote) |
|
| 10 | { |
|
| 11 | return $this->getEntityRepository()->findBy(array('post_vote' => $post_vote)); |
|
| 12 | } |
|
| 13 | ||
| 14 | public function getEntityRepository() |
|
| 15 | { |
|
| 16 | if (null === $this->er) { |
|
| 17 | $this->er = $this->em->getRepository('PlaygroundGame\Entity\PostVotePost'); |
|
| 18 | } |
|
| 19 | ||
| 20 | return $this->er; |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||
| @@ 7-22 (lines=16) @@ | ||
| 4 | ||
| 5 | use PlaygroundGame\Mapper\AbstractMapper; |
|
| 6 | ||
| 7 | class Prize extends AbstractMapper |
|
| 8 | { |
|
| 9 | public function findByIdentifier($identifier) |
|
| 10 | { |
|
| 11 | return $this->getEntityRepository()->findOneBy(array('identifier' => $identifier)); |
|
| 12 | } |
|
| 13 | ||
| 14 | public function getEntityRepository() |
|
| 15 | { |
|
| 16 | if (null === $this->er) { |
|
| 17 | $this->er = $this->em->getRepository('PlaygroundGame\Entity\Prize'); |
|
| 18 | } |
|
| 19 | ||
| 20 | return $this->er; |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||
| @@ 7-22 (lines=16) @@ | ||
| 4 | ||
| 5 | use PlaygroundGame\Mapper\AbstractMapper; |
|
| 6 | ||
| 7 | class PrizeCategory extends AbstractMapper |
|
| 8 | { |
|
| 9 | public function findByIdentifier($identifier) |
|
| 10 | { |
|
| 11 | return $this->getEntityRepository()->findOneBy(array('identifier' => $identifier)); |
|
| 12 | } |
|
| 13 | ||
| 14 | public function getEntityRepository() |
|
| 15 | { |
|
| 16 | if (null === $this->er) { |
|
| 17 | $this->er = $this->em->getRepository('PlaygroundGame\Entity\PrizeCategory'); |
|
| 18 | } |
|
| 19 | ||
| 20 | return $this->er; |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||
| @@ 7-22 (lines=16) @@ | ||
| 4 | ||
| 5 | use PlaygroundGame\Mapper\AbstractMapper; |
|
| 6 | ||
| 7 | class QuizAnswer extends AbstractMapper |
|
| 8 | { |
|
| 9 | public function findByGameId($quiz) |
|
| 10 | { |
|
| 11 | return $this->getEntityRepository()->findBy(array('quiz' => $quiz)); |
|
| 12 | } |
|
| 13 | ||
| 14 | public function getEntityRepository() |
|
| 15 | { |
|
| 16 | if (null === $this->er) { |
|
| 17 | $this->er = $this->em->getRepository('PlaygroundGame\Entity\QuizAnswer'); |
|
| 18 | } |
|
| 19 | ||
| 20 | return $this->er; |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||
| @@ 7-22 (lines=16) @@ | ||
| 4 | ||
| 5 | use PlaygroundGame\Mapper\AbstractMapper; |
|
| 6 | ||
| 7 | class MemoryScore extends AbstractMapper |
|
| 8 | { |
|
| 9 | public function findByEntry($entry) |
|
| 10 | { |
|
| 11 | return $this->getEntityRepository()->findBy(array('entry' => $entry)); |
|
| 12 | } |
|
| 13 | ||
| 14 | public function getEntityRepository() |
|
| 15 | { |
|
| 16 | if (null === $this->er) { |
|
| 17 | $this->er = $this->em->getRepository('PlaygroundGame\Entity\MemoryScore'); |
|
| 18 | } |
|
| 19 | ||
| 20 | return $this->er; |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||