| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function getOrderedChoices(Poll $poll) |
||
| 36 | { |
||
| 37 | $query = $this->getEntityManager()->createQuery( |
||
| 38 | 'SELECT choice |
||
| 39 | FROM KyelaBundle:Choice choice |
||
| 40 | WHERE choice.poll = :poll |
||
| 41 | ORDER BY choice.priority' |
||
| 42 | ); |
||
| 43 | $query->setParameter('poll', $poll->getId()); |
||
| 44 | return $query->getResult(); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |