@@ 211-221 (lines=11) @@ | ||
208 | ||
209 | $property['property_options'] = $this->askForPropertyOptions($input, $output); |
|
210 | break; |
|
211 | case 'parentDocument': |
|
212 | if (!$this->isUniqueAnnotation($properties, $property['annotation'])) { |
|
213 | $output->writeln( |
|
214 | $this |
|
215 | ->getException('Only one "%s" field can be added', [$property['annotation']]) |
|
216 | ->getMessage() |
|
217 | ); |
|
218 | continue(2); |
|
219 | } |
|
220 | $property['property_class'] = $this->askForPropertyClass($input, $output); |
|
221 | break; |
|
222 | case 'property': |
|
223 | $property['property_name'] = $this->askForPropertyName($input, $output, $property['field_name']); |
|
224 | ||
@@ 239-253 (lines=15) @@ | ||
236 | ||
237 | $property['property_options'] = $this->askForPropertyOptions($input, $output); |
|
238 | break; |
|
239 | case 'ttl': |
|
240 | if (!$this->isUniqueAnnotation($properties, $property['annotation'])) { |
|
241 | $output->writeln( |
|
242 | $this |
|
243 | ->getException('Only one "%s" field can be added', [$property['annotation']]) |
|
244 | ->getMessage() |
|
245 | ); |
|
246 | continue(2); |
|
247 | } |
|
248 | $property['property_default'] = $this->questionHelper->ask( |
|
249 | $input, |
|
250 | $output, |
|
251 | $this->getQuestion("\n" . 'Default time to live') |
|
252 | ); |
|
253 | break; |
|
254 | case 'id': |
|
255 | if (!$this->isUniqueAnnotation($properties, $property['annotation'])) { |
|
256 | $output->writeln( |