Fatal error: Uncaught Error: Call to a member function query() on null in /home/lerecrutne/www/module/Siteb/src/Siteb/Model/Annonce.php:18 Stack trace: #0 /home/lerecrutne/www/module/Siteb/src/Siteb/Controller/EmploiController.php(57): Siteb\Model\Annonce->listeAnnonces() #1 /home/lerecrutne/www/vendor/ZF2/library/Zend/Mvc/Controller/AbstractActionController.php(82): Siteb\Controller\EmploiController->home2Action() #2 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent)) #3 /home/lerecrutne/www/vendor/ZF2/library/Zend/EventManager/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #4 /home/lerecrutne/www/vendor/ZF2/library/Zend/EventManager/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #5 /home/lerecrutne/www/vendor/ZF2/library/Zend/Mvc/Controller/AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) in /home/lerecrutne/www/module/Siteb/src/Siteb/Model/Annonce.php on line 18