src/Kunstmaan/GeneratorBundle/Generator/KunstmaanGenerator.php
protected function getEntityGenerator($classToExtend = null)
    {
        $entityGenerator = new EntityGenerator();
        if (!is_null($classToExtend)) {
            $entityGenerator->setClassToExtend($classToExtend);
        }
        $entityGenerator->setGenerateAnnotations(true);
        $entityGenerator->setGenerateStubMethods(true);
        $entityGenerator->setRegenerateEntityIfExists(false);
        $entityGenerator->setUpdateEntityIfExists(true);
        $entityGenerator->setNumSpaces(4);
        $entityGenerator->setAnnotationPrefix('ORM\\');

        return $entityGenerator;
    }
protected function getEntityGenerator($classToExtend = null)
    {
        $entityGenerator = new EntityGenerator();
        if (!is_null($classToExtend)) {
            $entityGenerator->setClassToExtend($classToExtend);
        }
        $entityGenerator->setGenerateAnnotations(true);
        $entityGenerator->setGenerateStubMethods(true);
        $entityGenerator->setRegenerateEntityIfExists(false);
        $entityGenerator->setUpdateEntityIfExists(true);
        $entityGenerator->setNumSpaces(4);
        $entityGenerator->setAnnotationPrefix('ORM\\');

        return $entityGenerator;
    }
protected function getEntityGenerator ( $ classToExtend = null ) { $ entityGenerator = new EntityGenerator ( ) ; if ( ! is_null ( $ classToExtend ) ) { $ entityGenerator -> setClassToExtend ( $ classToExtend ) ; } $ entityGenerator -> setGenerateAnnotations ( true ) ; $ entityGenerator -> setGenerateStubMethods ( true ) ; $ entityGenerator -> setRegenerateEntityIfExists ( false ) ; $ entityGenerator -> setUpdateEntityIfExists ( true ) ; $ entityGenerator -> setNumSpaces ( 4 ) ; $ entityGenerator -> setAnnotationPrefix ( 'ORM\\' ) ; return $ entityGenerator ; }
Get a Doctrine EntityGenerator instance.

@param string|null $classToExtend

@return EntityGenerator
Get a Doctrine EntityGenerator instance .