@@ 185-195 (lines=11) @@ | ||
182 | ||
183 | $property['property_options'] = $this->askForPropertyOptions($input, $output); |
|
184 | break; |
|
185 | case 'ParentDocument': |
|
186 | if (!$this->isUniqueAnnotation($properties, $property['annotation'])) { |
|
187 | $output->writeln( |
|
188 | $this |
|
189 | ->getException('Only one "%s" field can be added', [$property['annotation']]) |
|
190 | ->getMessage() |
|
191 | ); |
|
192 | continue(2); |
|
193 | } |
|
194 | $property['property_class'] = $this->askForPropertyClass($input, $output); |
|
195 | break; |
|
196 | case 'Property': |
|
197 | $property['property_name'] = $this->askForPropertyName($input, $output, $property['field_name']); |
|
198 | ||
@@ 213-227 (lines=15) @@ | ||
210 | ||
211 | $property['property_options'] = $this->askForPropertyOptions($input, $output); |
|
212 | break; |
|
213 | case 'Ttl': |
|
214 | if (!$this->isUniqueAnnotation($properties, $property['annotation'])) { |
|
215 | $output->writeln( |
|
216 | $this |
|
217 | ->getException('Only one "%s" field can be added', [$property['annotation']]) |
|
218 | ->getMessage() |
|
219 | ); |
|
220 | continue(2); |
|
221 | } |
|
222 | $property['property_default'] = $this->questionHelper->ask( |
|
223 | $input, |
|
224 | $output, |
|
225 | $this->getQuestion("\n" . 'Default time to live') |
|
226 | ); |
|
227 | break; |
|
228 | case 'Id': |
|
229 | if (!$this->isUniqueAnnotation($properties, $property['annotation'])) { |
|
230 | $output->writeln( |