try a fix

This commit is contained in:
mckmonster 2024-09-04 16:24:45 +02:00
parent a903ff4e89
commit d44cf750a2

View file

@ -19,7 +19,7 @@ class Eleve {
$this->user = $entryManager->getOne($userId);
// echo "<p>".var_dump($userId)."</p>";
$this->parents = [];
foreach ($entryManager->search(['formsIds' => 9, 'queries' => ['listefiche7bf_eleve' => $userId."2"]]) as $parent) {
foreach ($entryManager->search(['formsIds' => 9, 'queries' => ['listefiche7bf_eleve' => $userId]]) as $parent) {
array_push($this->parents, new ParentEleve($entryManager, $yunoshostFormId, $parent));
}
echo "<p>".var_dump($this)."</p>";