Skip to content

Commit 78346a4

Browse files
committed
Merge pull request symfony#1885 from dreipunktnull/fix_missing_dot_in_property_path
Added missing dot in property path assembly.
2 parents b32ecce + dd91b73 commit 78346a4

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
@@ -217,7 +217,7 @@ With this, the validator ``isValid()`` method gets an object as its first argume
217217
{
218218
if ($protocol->getFoo() != $protocol->getBar()) {
219219

220-
$propertyPath = $this->context->getPropertyPath() . 'foo';
220+
$propertyPath = $this->context->getPropertyPath().'.foo';
221221
$this->context->setPropertyPath($propertyPath);
222222
$this->context->addViolation($constraint->getMessage(), array(), null);
223223

0 commit comments

Comments
 (0)