public function createDocumentManager($mongouri, $dbName, $debug = false, $managerId = "", $newConnection = false, $options = [])
    {

        if (!isset($this->connexions[$mongouri])) {
            $client = new Client($mongouri);
        }

        if (!isset($this->managers[$managerId])) {
            $database = new Database($client->getManager(), $dbName);

            $class = $this->repositoryFactoryClass;

            $repositoryFactory = new $class(null, $this->classMetadataFactory);

            $this->managers[$managerId] = new DocumentManager(
                $client,
                $database,
                $repositoryFactory,
                $debug,
                $options,
                []
            );
        }

        return $this->managers[$managerId];
    }