Notice: Trying to get property of non-object in /var/www/sermon.net-20180124/vendor/MistDoctrine/vendor/doctrine-orm/lib/Doctrine/ORM/EntityManager.php on line 574

Fatal error: Uncaught TypeError: Argument 2 passed to Doctrine\ORM\EntityRepository::__construct() must be an instance of Doctrine\ORM\Mapping\ClassMetadata, null given, called in /var/www/sermon.net-20180124/vendor/MistDoctrine/vendor/doctrine-orm/lib/Doctrine/ORM/EntityManager.php on line 579 and defined in /var/www/sermon.net-20180124/vendor/MistDoctrine/vendor/doctrine-orm/lib/Doctrine/ORM/EntityRepository.php:61 Stack trace: #0 /var/www/sermon.net-20180124/vendor/MistDoctrine/vendor/doctrine-orm/lib/Doctrine/ORM/EntityManager.php(579): Doctrine\ORM\EntityRepository->__construct(Object(Doctrine\ORM\EntityManager), NULL) #1 /var/www/sermon.net-20180124/module/Common/src/Common/Model/Service/Common.php(602): Doctrine\ORM\EntityManager->getRepository('alias:StudioUrl') #2 /var/www/sermon.net-20180124/httpdocs/index.php(52): Common\Model\Service\Common->getModulesListByHost(Object(Zend\Mvc\Application), 'memorialumc.ser...') #3 {main} thrown in /var/www/sermon.net-20180124/vendor/MistDoctrine/vendor/doctrine-orm/lib/Doctrine/ORM/EntityRepository.php on line 61