| @@ 344-351 (lines=8) @@ | ||
| 341 | * |
|
| 342 | * @internal param int $index The index to start adding modifiers with |
|
| 343 | */ |
|
| 344 | protected function addFinalModifiers(FeedBuilderInterface $builder, $startStartIndex, $endIndex) |
|
| 345 | { |
|
| 346 | // set default values |
|
| 347 | $this->addModifierBetween($builder, new DefaultValuesTransformer($this->options['default_values']), $startStartIndex, $endIndex); |
|
| 348 | ||
| 349 | // scrub obsolete fields |
|
| 350 | $this->addModifierBetween($builder, new ObsoleteFieldsTransformer($this->getMappedFields()), $startStartIndex, $endIndex); |
|
| 351 | } |
|
| 352 | ||
| 353 | /** |
|
| 354 | * @return EntityManagerInterface |
|
| @@ 395-402 (lines=8) @@ | ||
| 392 | * @param int $startStartIndex |
|
| 393 | * @param int $endIndex |
|
| 394 | */ |
|
| 395 | protected function addFinalModifiers(ParserBuilderInterface $parser, $startStartIndex, $endIndex) |
|
| 396 | { |
|
| 397 | // set default values |
|
| 398 | $parser->addModifierBetween(new DefaultValuesTransformer($this->options['default_values']), $startStartIndex, $endIndex); |
|
| 399 | ||
| 400 | // scrub obsolete fields |
|
| 401 | $parser->addModifierBetween(new ObsoleteFieldsTransformer($this->getMappedFields()), $startStartIndex, $endIndex); |
|
| 402 | } |
|
| 403 | ||
| 404 | /** |
|
| 405 | * Returns the names of all mapped and extra mapped fields. These are the |
|