src/CarteBlanche/Library/AutoObject/AutoObjectMapper.php
static function getEntityManager($emname)
    {
        $_this = self::getInstance();
        $emname = $_this->buildEntityName($emname);

        $known_manager = $_this->registry->getEntry($emname, 'entityManager');
        if ($known_manager) {
            return $known_manager;
        } else {
    //			$manager = $_this->buildEntityManager($emname);
            $manager = CarteBlanche::getContainer()->get('entity_manager')
                ->getStorageEngine($emname);
            $_this->registry->setEntry($emname, $manager, 'entityManager');
            return $manager;
        }
    }
static function getEntityManager($emname)
    {
        $_this = self::getInstance();
        $emname = $_this->buildEntityName($emname);

        $known_manager = $_this->registry->getEntry($emname, 'entityManager');
        if ($known_manager) {
            return $known_manager;
        } else {
    //			$manager = $_this->buildEntityManager($emname);
            $manager = CarteBlanche::getContainer()->get('entity_manager')
                ->getStorageEngine($emname);
            $_this->registry->setEntry($emname, $manager, 'entityManager');
            return $manager;
        }
    }
Get an entityManager
@param string $emname The name of the entity manager to search
@return object Returns an object to manage the entity