| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function getPendingCorrectionsByExercise(int $courseId): array |
||
| 30 | { |
||
| 31 | $qb = $this->createQueryBuilder('te'); |
||
| 32 | |||
| 33 | $qb->select('IDENTITY(te.quiz) AS exerciseId, COUNT(te.exeId) AS pendingCount') |
||
| 34 | ->where('te.status = :status') |
||
| 35 | ->andWhere('te.course = :courseId') |
||
| 36 | ->setParameter('status', 'incomplete') |
||
| 37 | ->setParameter('courseId', $courseId) |
||
| 38 | ->groupBy('te.quiz'); |
||
| 39 | |||
| 40 | return $qb->getQuery()->getResult(); |
||
| 41 | } |
||
| 43 |