We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3289c63 commit 7f9644bCopy full SHA for 7f9644b
app/model/repository/ExerciseFiles.php
@@ -29,6 +29,10 @@ public function findUnused(): array
29
(SELECT a FROM App\Model\Entity\Assignment a WHERE a MEMBER OF f.assignments AND a.deletedAt IS NULL)
30
AND NOT EXISTS
31
(SELECT p FROM App\Model\Entity\Pipeline p WHERE p MEMBER OF f.pipelines AND p.deletedAt IS NULL)
32
+ AND NOT EXISTS
33
+ (SELECT l FROM App\Model\Entity\ExerciseFileLink l
34
+ LEFT JOIN l.exercise le LEFT JOIN l.assignment la
35
+ WHERE l.exerciseFile = f AND le.deletedAt IS NULL AND la.deletedAt IS NULL)
36
");
37
38
return $query->getResult();
0 commit comments