mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
location: allow null value for location in Activity
This commit is contained in:
parent
f4bd55262a
commit
819fc8af46
@ -313,7 +313,7 @@ class ActivityType extends AbstractType
|
|||||||
}
|
}
|
||||||
return $location->getId();
|
return $location->getId();
|
||||||
},
|
},
|
||||||
function (?string $id): Location {
|
function (?string $id): ?Location {
|
||||||
return $this->om->getRepository(Location::class)->findOneBy(['id' => (int) $id]);
|
return $this->om->getRepository(Location::class)->findOneBy(['id' => (int) $id]);
|
||||||
}
|
}
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user