public function registerAnnotationBasedEntities($namespace, $directory) {
        $mappingDriver = InstallUtils::getOrCreateInstance('mappingDriver.'.$namespace, null, $this->moufManager);
        $mappingDriver->setCode('return new Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver($container->get(\'annotationReader\'), [ROOT_PATH . "'.$directory.'"]);');

        $this->addDriverToChain($namespace, $mappingDriver);
    }
public function registerAnnotationBasedEntities($namespace, $directory) {
        $mappingDriver = InstallUtils::getOrCreateInstance('mappingDriver.'.$namespace, null, $this->moufManager);
        $mappingDriver->setCode('return new Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver($container->get(\'annotationReader\'), [ROOT_PATH . "'.$directory.'"]);');

        $this->addDriverToChain($namespace, $mappingDriver);
    }
public function registerAnnotationBasedEntities ( $ namespace , $ directory ) { $ mappingDriver = InstallUtils :: getOrCreateInstance ( 'mappingDriver.' . $ namespace , null , $ this -> moufManager ) ; $ mappingDriver -> setCode ( 'return new Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver($container->get(\'annotationReader\'), [ROOT_PATH . "' . $ directory . '"]);' ) ; $ this -> addDriverToChain ( $ namespace , $ mappingDriver ) ; }
Registers a set of annotation-based entities.

@param string $namespace
@param string $directory Directory where the annotations are stored, relative to ROOT_PATH.
Registers a set of annotation - based entities .