The PropertyPath class resolves to the following classes: Symfony\Component\PropertyAccess\PropertyPath or Symfony\Component\Validator\Util\PropertyPath.
Did you forget to add a corresponding use statement for one of them?
if (!is_a($objectOrArray, 'EasyRdf\Resource')) {
throw new UnexpectedTypeException($objectOrArray, 'EasyRdf\Resource');
}
if (is_string($propertyPath)) {
$propertyPath = new PropertyPath($propertyPath);
} elseif (!$propertyPath instanceof PropertyPathInterface) {
throw new UnexpectedTypeException($propertyPath, 'string or Symfony\Component\PropertyAccess\PropertyPathInterface');
}
//$objectOrArray = new \EasyRdf_Resource();
in src/Conjecto/Nemrod/Form/Extension/Core/DataMapper/ResourcePropertyPathMapper.php, line 142
Posted from SensioLabsInsight