Fatal error: Uncaught Error: Call to a member function getStages() on array in /app-formation/src/controllers/CalendrierController.php:120 Stack trace: #0 /app-formation/src/routes/CalendrierRoutes.php(51): CAOFormation\controllers\CalendrierController->calendrierGetAction(Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #1 /app-formation/src/routes/CalendrierRoutes.php(20): CAOFormation\routes\CalendrierRoutes::callController(Object(Slim\Http\Request), Object(Slim\Http\Response), Array, Object(Slim\Container)) #2 [internal function]: CAOFormation\routes\CalendrierRoutes->CAOFormation\routes\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #3 /app-formation/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #4 /app-formation/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Respon in /app-formation/src/controllers/CalendrierController.php on line 120