|
|
|
|
@ -53,9 +53,14 @@ class ToolLaunchRepository extends EntityRepository |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($filteredForStudent) { |
|
|
|
|
$qb->leftJoin(CLpItem::class, 'lpi', Join::WITH, 'tl.id = lpi.path AND tl.course = lpi.cId') |
|
|
|
|
->andWhere($qb->expr()->eq('lpi.itemType', ':item_type')) |
|
|
|
|
->setParameter('item_type', TOOL_XAPI); |
|
|
|
|
$qb |
|
|
|
|
->leftJoin( |
|
|
|
|
CLpItem::class, |
|
|
|
|
'lpi', |
|
|
|
|
Join::WITH, |
|
|
|
|
"tl.id = lpi.path AND tl.course = lpi.cId AND lpi.itemType = 'xapi'" |
|
|
|
|
) |
|
|
|
|
->andWhere($qb->expr()->isNull('lpi.path')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$query = $qb->getQuery(); |
|
|
|
|
|