Skip to content
Browse files

fixed parentMapping handling

  • Loading branch information...
1 parent 1c9594b commit 74b537ca40a020108a248874dd027fe8fed2c980 @lsmith77 lsmith77 committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 Validator/Constraints/ValidPhpcrOdmValidator.php
View
4 Validator/Constraints/ValidPhpcrOdmValidator.php
@@ -59,10 +59,10 @@ public function validate($document, Constraint $constraint)
return;
}
- $parent = $class->getFieldValue($document, $class->parentMapping['fieldName']);
+ $parent = $class->getFieldValue($document, $class->parentMapping);
if (empty($parent)) {
- $this->context->addViolationAtSubPath($class->parentMapping['fieldName'], $constraint->message);
+ $this->context->addViolationAtSubPath($class->parentMapping, $constraint->message);
}
$name = $class->getFieldValue($document, $class->nodename);

0 comments on commit 74b537c

Please sign in to comment.
Something went wrong with that request. Please try again.