Skip to content

Commit 5d47e51

Browse files
committed
Fixing a bug.
1 parent fcc1590 commit 5d47e51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/model/repository/PlagiarismDetectionBatches.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ public function findByToolAndSolution(?string $detectionTool, ?AssignmentSolutio
3434
$sub = $qb->getEntityManager()->createQueryBuilder()
3535
->select("ds")->from(PlagiarismDetectedSimilarity::class, "ds");
3636
$sub->andWhere("ds.batch = b.id")
37-
->andWhere("ds.testedSolution = :sid")->setParameter("sid", $solution->getId());
38-
$qb->andWhere($qb->expr()->exists($sub->getDQL()));
37+
->andWhere("ds.testedSolution = :sid");
38+
$qb->andWhere($qb->expr()->exists($sub->getDQL()))
39+
->setParameter("sid", $solution->getId());
3940
}
4041
$qb->orderBy("b.createdAt", "DESC");
4142
return $qb->getQuery()->getResult();

0 commit comments

Comments
 (0)