@@ -17,13 +17,13 @@ class GenerateEntitiesCommand extends Command
17
17
{dest-path? : Path you want entities to be generated in }
18
18
{--filter=* : A string pattern used to match entities that should be processed.}
19
19
{--em= : Generate getter and setter for a specific entity manager. },
20
- {--generate-annotations= : Flag to define if generator should generate annotation metadata on entities.}
21
- {--generate-methods= : Flag to define if generator should generate stub methods on entities.}
22
- {--regenerate-entities= : Flag to define if generator should regenerate entity if it exists.}
23
- {--update-entities= : Flag to define if generator should only update entity if it exists.}
20
+ {--generate-annotations : Flag to define if generator should generate annotation metadata on entities.}
21
+ {--generate-methods : Flag to define if generator should generate stub methods on entities.}
22
+ {--regenerate-entities : Flag to define if generator should regenerate entity if it exists.}
23
+ {--update-entities : Flag to define if generator should only update entity if it exists.}
24
24
{--extend= : Defines a base class to be extended by generated entity classes.}
25
- {--num-spaces= : Defines the number of indentation spaces.}
26
- {--no-backup= : Flag to define if generator should avoid backuping existing entity file if it exists} ' ;
25
+ {--num-spaces=4 : Defines the number of indentation spaces.}
26
+ {--no-backup : Flag to define if generator should avoid backuping existing entity file if it exists} ' ;
27
27
28
28
/**
29
29
* The console command description.
@@ -73,9 +73,9 @@ public function fire(ManagerRegistry $registry)
73
73
$ entityGenerator = new EntityGenerator ();
74
74
75
75
$ entityGenerator ->setGenerateAnnotations ($ this ->option ('generate-annotations ' ));
76
- $ entityGenerator ->setGenerateStubMethods ($ this ->option ('generate-methods ' ) === null ? true : $ this -> option ( ' generate-methods ' ) );
76
+ $ entityGenerator ->setGenerateStubMethods ($ this ->option ('generate-methods ' ));
77
77
$ entityGenerator ->setRegenerateEntityIfExists ($ this ->option ('regenerate-entities ' ));
78
- $ entityGenerator ->setUpdateEntityIfExists ($ this ->option ('update-entities ' ) === null ? true : $ this -> option ( ' update-entities ' ) );
78
+ $ entityGenerator ->setUpdateEntityIfExists ($ this ->option ('update-entities ' ));
79
79
$ entityGenerator ->setNumSpaces ($ this ->option ('num-spaces ' ));
80
80
$ entityGenerator ->setBackupExisting (!$ this ->option ('no-backup ' ));
81
81
0 commit comments