src/Task/Doctrine/loadOrmTasks.php
public function ormGenerateEntities(
        $destPath,
        $opt = [
            'filter'               => null,
            'generate-annotations' => false,
            'generate-methods'     => true,
            'regenerate-entities'  => false,
            'update-entities'      => true,
            'extend'               => false,
            'num-spaces'           => 4,
        ]
    ){
        $validOpts = [
            'filter',
            'generate-annotations',
            'generate-methods',
            'regenerate-entities',
            'update-entities',
            'extend',
            'num-spaces',
        ];
        $command = new Command\GenerateEntitiesCommand;

        $arg = [
            'dest-path' => $destPath,
        ];

        $this->runDoctrineCommand($command, $opt, $validOpts, $arg);
    }
public function ormGenerateEntities(
        $destPath,
        $opt = [
            'filter'               => null,
            'generate-annotations' => false,
            'generate-methods'     => true,
            'regenerate-entities'  => false,
            'update-entities'      => true,
            'extend'               => false,
            'num-spaces'           => 4,
        ]
    ){
        $validOpts = [
            'filter',
            'generate-annotations',
            'generate-methods',
            'regenerate-entities',
            'update-entities',
            'extend',
            'num-spaces',
        ];
        $command = new Command\GenerateEntitiesCommand;

        $arg = [
            'dest-path' => $destPath,
        ];

        $this->runDoctrineCommand($command, $opt, $validOpts, $arg);
    }
public function ormGenerateEntities ( $ destPath , $ opt = [ 'filter' => null , 'generate-annotations' => false , 'generate-methods' => true , 'regenerate-entities' => false , 'update-entities' => true , 'extend' => false , 'num-spaces' => 4 , ] ) { $ validOpts = [ 'filter' , 'generate-annotations' , 'generate-methods' , 'regenerate-entities' , 'update-entities' , 'extend' , 'num-spaces' , ] ; $ command = new Command \ GenerateEntitiesCommand ; $ arg = [ 'dest-path' => $ destPath , ] ; $ this -> runDoctrineCommand ( $ command , $ opt , $ validOpts , $ arg ) ; }
Generate entity classes and method stubs from your mapping information

@param string $destPath The path to generate your repository classes
@param array  $opt

@option $filter               A string pattern used to match entities that should be processed
@option $generate-annotations Flag to define if generator should generate annotation metadata on entities
@option $generate-methods     Flag to define if generator should generate stub methods on entities
@option $regenerate-entities  Flag to define if generator should regenerate entity if it exists
@option $update-entities      Flag to define if generator should only update entity if it exists
@option $extend               Defines a base class to be extended by generated entity classes
@option $num-spaces           Defines the number of indentation spaces
Generate entity classes and method stubs from your mapping information