@@ 86-99 (lines=14) @@ | ||
83 | ); |
|
84 | ||
85 | $pathFile = $this->getPathFile($input->getArgument('config-name'), $this->relation, 'Model', '', $input->getOption('psr4')); |
|
86 | if (!file_exists($pathFile) || $input->getOption('force')) { |
|
87 | $this->updateOutput( |
|
88 | $output, |
|
89 | (new ModelGenerator( |
|
90 | $session, |
|
91 | $this->schema, |
|
92 | $this->relation, |
|
93 | $pathFile, |
|
94 | $this->getNamespace($input->getArgument('config-name')) |
|
95 | ))->generate(new ParameterHolder(array_merge($input->getArguments(), $input->getOptions()))) |
|
96 | ); |
|
97 | } elseif ($output->isVerbose()) { |
|
98 | $this->writelnSkipFile($output, $pathFile, 'model'); |
|
99 | } |
|
100 | ||
101 | $pathFile = $this->getPathFile($input->getArgument('config-name'), $this->relation, '', '', $input->getOption('psr4')); |
|
102 | if (!file_exists($pathFile) || $input->getOption('force')) { |
|
@@ 102-116 (lines=15) @@ | ||
99 | } |
|
100 | ||
101 | $pathFile = $this->getPathFile($input->getArgument('config-name'), $this->relation, '', '', $input->getOption('psr4')); |
|
102 | if (!file_exists($pathFile) || $input->getOption('force')) { |
|
103 | $this->updateOutput( |
|
104 | $output, |
|
105 | (new EntityGenerator( |
|
106 | $session, |
|
107 | $this->schema, |
|
108 | $this->relation, |
|
109 | $pathFile, |
|
110 | $this->getNamespace($input->getArgument('config-name')), |
|
111 | $this->flexible_container |
|
112 | ))->generate(new ParameterHolder(array_merge($input->getArguments(), $input->getOptions()))) |
|
113 | ); |
|
114 | } elseif ($output->isVerbose()) { |
|
115 | $this->writelnSkipFile($output, $pathFile, 'entity'); |
|
116 | } |
|
117 | } |
|
118 | ||
119 | /** |