linking demandes

This commit is contained in:
Tykayn 2025-07-16 23:01:13 +02:00 committed by tykayn
parent 0aa050b38b
commit 7f79ec3a9f
6 changed files with 190 additions and 10 deletions

View file

@ -107,6 +107,7 @@ class LinkDemandesPlacesCommand extends Command
if (!$dryRun) {
$demande->setPlace($bestMatch);
$demande->setPlaceUuid($bestMatch->getUuidForUrl());
$demande->setStatus('linked_to_place');
$this->entityManager->persist($demande);
$linkedCount++;
@ -199,4 +200,4 @@ class LinkDemandesPlacesCommand extends Command
{
return str_replace(['%', '_'], ['\%', '\_'], $str);
}
}
}