public function loadEntitiesFrom($directory) {
        $metadata = $this->app['config']['doctrine.managers.default.paths'];
        $metadata[] = $directory;
        $this->app['config']->set('doctrine.managers.default.paths', $metadata);
    }
public function loadEntitiesFrom($directory) {
        $metadata = $this->app['config']['doctrine.managers.default.paths'];
        $metadata[] = $directory;
        $this->app['config']->set('doctrine.managers.default.paths', $metadata);
    }
public function loadEntitiesFrom ( $ directory ) { $ metadata = $ this -> app [ 'config' ] [ 'doctrine.managers.default.paths' ] ; $ metadata [ ] = $ directory ; $ this -> app [ 'config' ] -> set ( 'doctrine.managers.default.paths' , $ metadata ) ; }
Register a directory of Doctrine entities.

@param  string  $directory
@return void
Register a directory of Doctrine entities .