protected function openController($force = false) { if ($force || $this->em == null || !$this->em->isOpen()) { $this->em = Router::createEntityManager(false); } }