$this->
validateInGroup($object,
$cacheKey,
$metadata,
$group,
$context);
} // If no more groups should be validated for the property nodes,
// we can safely quit
if (0 === \
count($groups)) { return;
} // Validate all properties against their constraints
foreach ($metadata->
getConstrainedProperties() as $propertyName) { // If constraints are defined both on the getter of a property as
// well as on the property itself, then getPropertyMetadata()
// returns two metadata objects, not just one
foreach ($metadata->
getPropertyMetadata($propertyName) as $propertyMetadata) { if (!
$propertyMetadata instanceof PropertyMetadataInterface
) { throw new UnsupportedMetadataException(sprintf('The property metadata instances should implement "Symfony\Component\Validator\Mapping\PropertyMetadataInterface", got: "%s".',
get_debug_type($propertyMetadata)));
} if ($propertyMetadata instanceof GetterMetadata
) { $propertyValue =
new LazyProperty(static fn () =>
$propertyMetadata->
getPropertyValue($object));
} else {