Skip to content

Commit 72727cc

Browse files
committed
Fixing bug created by doctrine upgrade.
1 parent 84ed606 commit 72727cc

File tree

4 files changed

+5
-51
lines changed

4 files changed

+5
-51
lines changed

app/commands/DoctrineFixtures.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Doctrine\ORM\Id\AssignedGenerator;
99
use Nette\Utils\Finder;
1010
use Nette\Utils\FileInfo;
11-
use SplFileInfo;
1211
use Symfony\Component\Console\Attribute\AsCommand;
1312
use Symfony\Component\Console\Command\Command;
1413
use Symfony\Component\Console\Input\InputArgument;

app/model/repository/ShadowAssignmentPointsRepository.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public function __construct(EntityManagerInterface $em)
2626
*/
2727
public function findPointsForAssignments(array $shadowAssignments, User $awardee): array
2828
{
29+
if (!$shadowAssignments) {
30+
return []; // we should not ask a query with empty IN ()
31+
}
32+
2933
$pointsList = $this->findBy(
3034
[
3135
"awardee" => $awardee,

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"nettrine/extensions-atlantic18": "^0.6.0",
5959
"nettrine/migrations": "^0.10",
6060
"nettrine/orm": "^0.9",
61-
"mrdm-nl/ldap": "^1.1",
6261
"ramsey/uuid-doctrine": "^2.0",
6362
"symfony/process": "^7.3",
6463
"tracy/tracy": "^2.11",

composer.lock

Lines changed: 1 addition & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)