You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fount the issue when using both a pre filter, then running converters and mapping, then running a post filter.
Can be reproduced with:
$reader = new ArrayReader([['id'=>1],['id'=>2]]);
$workflow = new StepAggregator($reader);
$workflow->setSkipItemOnFailure(true);
$validator = $this->getContainer()->get('validator');
$preFilter = new ValidatorFilter($validator);
$preFilter->throwExceptions(false);
$preFilter->add('id', new Assert\EqualTo(['value'=>2]));
$postFilter = new ValidatorFilter($validator);
$postFilter->throwExceptions(false);
$postFilter->add('id', new Assert\EqualTo(['value'=>1]));
$workflow->addStep((new FilterStep())->add($preFilter),2);
$workflow->addStep((new FilterStep())->add($postFilter),1);
$workflow->process();
var_dump(array_keys($postFilter->getViolations()), array_keys($postFilter->getViolations()));
Fount the issue when using both a pre filter, then running converters and mapping, then running a post filter.
Can be reproduced with:
$reader = new ArrayReader([['id'=>1],['id'=>2]]);
$workflow = new StepAggregator($reader);
$workflow->setSkipItemOnFailure(true);
$validator = $this->getContainer()->get('validator');
$preFilter = new ValidatorFilter($validator);
$preFilter->throwExceptions(false);
$preFilter->add('id', new Assert\EqualTo(['value'=>2]));
$postFilter = new ValidatorFilter($validator);
$postFilter->throwExceptions(false);
$postFilter->add('id', new Assert\EqualTo(['value'=>1]));
$workflow->addStep((new FilterStep())->add($preFilter),2);
$workflow->addStep((new FilterStep())->add($postFilter),1);
$workflow->process();
var_dump(array_keys($postFilter->getViolations()), array_keys($postFilter->getViolations()));
Returns:
Expected:
The text was updated successfully, but these errors were encountered: