src/Hive/Hive.php
protected function createDocumentManager()
    {
        AnnotationDriver::registerAnnotationClasses();

        $configuration = new Configuration();
        $configuration->setProxyDir($this->configuration['doctrine']['proxyDir']);
        $configuration->setProxyNamespace($this->configuration['doctrine']['proxyNamespace']);
        $configuration->setHydratorDir($this->configuration['doctrine']['hydratorDir']);
        $configuration->setHydratorNamespace($this->configuration['doctrine']['hydratorNamespace']);
        $configuration->setMetadataDriverImpl(AnnotationDriver::create());

        return DocumentManager::create(new Connection($this->configuration['doctrine']['connection']['server']), $configuration);
    }
protected function createDocumentManager()
    {
        AnnotationDriver::registerAnnotationClasses();

        $configuration = new Configuration();
        $configuration->setProxyDir($this->configuration['doctrine']['proxyDir']);
        $configuration->setProxyNamespace($this->configuration['doctrine']['proxyNamespace']);
        $configuration->setHydratorDir($this->configuration['doctrine']['hydratorDir']);
        $configuration->setHydratorNamespace($this->configuration['doctrine']['hydratorNamespace']);
        $configuration->setMetadataDriverImpl(AnnotationDriver::create());

        return DocumentManager::create(new Connection($this->configuration['doctrine']['connection']['server']), $configuration);
    }
protected function createDocumentManager ( ) { AnnotationDriver :: registerAnnotationClasses ( ) ; $ configuration = new Configuration ( ) ; $ configuration -> setProxyDir ( $ this -> configuration [ 'doctrine' ] [ 'proxyDir' ] ) ; $ configuration -> setProxyNamespace ( $ this -> configuration [ 'doctrine' ] [ 'proxyNamespace' ] ) ; $ configuration -> setHydratorDir ( $ this -> configuration [ 'doctrine' ] [ 'hydratorDir' ] ) ; $ configuration -> setHydratorNamespace ( $ this -> configuration [ 'doctrine' ] [ 'hydratorNamespace' ] ) ; $ configuration -> setMetadataDriverImpl ( AnnotationDriver :: create ( ) ) ; return DocumentManager :: create ( new Connection ( $ this -> configuration [ 'doctrine' ] [ 'connection' ] [ 'server' ] ) , $ configuration ) ; }
Creates the doctrine document mananger for working on the database

@return DocumentManager
Creates the doctrine document mananger for working on the database