Skip to content

Commit

Permalink
fixed addViolationAt method (propelorm#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Siewert authored and havvg committed Oct 13, 2016
1 parent aca832c commit 9435b2a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Validator/Constraints/UniqueObjectValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,13 @@ public function validate($object, Constraint $constraint)
);
}

$this->context->addViolationAt(
$constraint->errorPath,
$constraint->message,
array(
$this->context->buildViolation($constraint->message)
->atPath($constraint->errorPath)
->setParameters(array(
'{{ object_class }}' => $class,
'{{ fields }}' => implode($constraint->messageFieldSeparator, $fieldParts)
)
);
))
->addViolation();

}
}
Expand Down

0 comments on commit 9435b2a

Please sign in to comment.