Skip to content

Commit c4dcada

Browse files
committed
Merging #355
1 parent 92f85f1 commit c4dcada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/validation/custom_constraint.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Avec ceci, la méthode ``validate()`` du validateur prend un objet comme premier
225225
{
226226
if ($protocol->getFoo() != $protocol->getBar()) {
227227

228-
$this->context->addViolationAtSubPath('foo', $constraint->message, array(), null);
228+
$this->context->addViolationAt('foo', $constraint->message, array(), null);
229229
}
230230
}
231231
}

0 commit comments

Comments
 (0)