Fatal error: Uncaught Error: Call to a member function getMaxPeople() on null in /var/www/vhosts/salustraining.be/httpdocs/CMS4U/Controller/Calendar.php:185 Stack trace: #0 [internal function]: CMS4U\Controller\Calendar->detail(1, 78, 2, 13) #1 /var/www/vhosts/salustraining.be/httpdocs/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php(117): call_user_func_array(Array, Array) #2 /var/www/vhosts/salustraining.be/httpdocs/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php(61): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #3 /var/www/vhosts/salustraining.be/httpdocs/vendor/silex/silex/src/Silex/Application.php(516): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #4 /var/www/vhosts/salustraining.be/httpdocs/vendor/silex/silex/src/Silex/Application.php(493): Silex\Application->handle(Object(Symfony\Component\HttpFoundation\Request)) #5 /var/www/vhosts/salustraining.be/ht in /var/www/vhosts/salustraining.be/httpdocs/CMS4U/Controller/Calendar.php on line 185