public function getPersistentCollectionGenerator()
    {
        if (!isset($this->odmOptions['persistentCollectionGenerator'])) {
            $this->odmOptions['persistentCollectionGenerator'] = new DefaultPersistentCollectionGenerator(
                $this->getPersistentCollectionDir(),
                $this->getPersistentCollectionNamespace()
            );
        }

        return $this->odmOptions['persistentCollectionGenerator'];
    }
public function getPersistentCollectionGenerator()
    {
        if (!isset($this->odmOptions['persistentCollectionGenerator'])) {
            $this->odmOptions['persistentCollectionGenerator'] = new DefaultPersistentCollectionGenerator(
                $this->getPersistentCollectionDir(),
                $this->getPersistentCollectionNamespace()
            );
        }

        return $this->odmOptions['persistentCollectionGenerator'];
    }
public function getPersistentCollectionGenerator ( ) { if ( ! isset ( $ this -> odmOptions [ 'persistentCollectionGenerator' ] ) ) { $ this -> odmOptions [ 'persistentCollectionGenerator' ] = new DefaultPersistentCollectionGenerator ( $ this -> getPersistentCollectionDir ( ) , $ this -> getPersistentCollectionNamespace ( ) ) ; } return $ this -> odmOptions [ 'persistentCollectionGenerator' ] ; }
Get the persistent collection generator.

@return DefaultPersistentCollectionGenerator
Get the persistent collection generator .