Loading src/Service/BddService.php +14 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ class BddService protected array $viewCache = []; protected array $entityCache = []; /** * Echappe une chaîne de caractères pour convertir en SQL Loading Loading @@ -217,6 +219,18 @@ class BddService } public function entityGet(string $class, int $id): mixed { if (!isset($this->entityCache[$class][$id])){ $this->entityCache[$class][$id] = $this->getEntityManager()->find($class, $id); } return $this->entityCache[$class][$id]; } /** * exécute un ordre SQL * Loading Loading
src/Service/BddService.php +14 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ class BddService protected array $viewCache = []; protected array $entityCache = []; /** * Echappe une chaîne de caractères pour convertir en SQL Loading Loading @@ -217,6 +219,18 @@ class BddService } public function entityGet(string $class, int $id): mixed { if (!isset($this->entityCache[$class][$id])){ $this->entityCache[$class][$id] = $this->getEntityManager()->find($class, $id); } return $this->entityCache[$class][$id]; } /** * exécute un ordre SQL * Loading