Skip to content

Commit

Permalink
fix index annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStorz committed Jun 20, 2023
1 parent 13ca0b4 commit 7119fab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Command/ImportFromJsonCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ private function importGroups(OutputInterface $output)
}

$group->setName($gr['name']);
$group->setCantonId($gr['canton_id']);
$group->setCantonName($gr['canton_name']);
$group->setCantonId($gr['canton_id'] ?? null);
$group->setCantonName($gr['canton_name'] ?? null);
$group->setCreatedAt(new DateTimeImmutable($gr['created_at']));
if ($gr['deleted_at']) {
$group->setDeletedAt(new DateTimeImmutable($gr['deleted_at']));
Expand Down
8 changes: 4 additions & 4 deletions src/Entity/Admin/GeoAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

/**
* @ORM\Table(name="admin_geo_address", indexes={
* @ORM\Index(columns="zip"),
* @ORM\Index(columns="town"),
* @ORM\Index(columns="address"),
* @ORM\Index(columns="house"),
* @ORM\Index(columns={"zip"}),
* @ORM\Index(columns={"town"}),
* @ORM\Index(columns={"address"}),
* @ORM\Index(columns={"house"}),
* })
* @ORM\Entity(repositoryClass=GeoAddressRepository::class)
*/
Expand Down

0 comments on commit 7119fab

Please sign in to comment.