mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
calendar: cast collection to array
This commit is contained in:
parent
d13d42b9bf
commit
220f297391
@ -332,12 +332,12 @@ class CalendarController extends AbstractController
|
|||||||
|
|
||||||
$personsId = array_map(
|
$personsId = array_map(
|
||||||
static fn (Person $p): int => $p->getId(),
|
static fn (Person $p): int => $p->getId(),
|
||||||
$entity->getPersons()
|
$entity->getPersons()->toArray()
|
||||||
);
|
);
|
||||||
|
|
||||||
$professionalsId = array_map(
|
$professionalsId = array_map(
|
||||||
static fn (ThirdParty $thirdParty): ?int => $thirdParty->getId(),
|
static fn (ThirdParty $thirdParty): ?int => $thirdParty->getId(),
|
||||||
$entity->getProfessionals()
|
$entity->getProfessionals()->toArray()
|
||||||
);
|
);
|
||||||
|
|
||||||
$durationTime = $entity->getEndDate()->diff($entity->getStartDate());
|
$durationTime = $entity->getEndDate()->diff($entity->getStartDate());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user