foreach ($classMetadata->
getConstrainedProperties() as $constrainedProperty) { $data[$constrainedProperty] =
$this->
getPropertyData($classMetadata,
$constrainedProperty);
} return $data;
} private function getPropertyData(ClassMetadataInterface
$classMetadata, string
$constrainedProperty): array
{ $data =
[];
$propertyMetadata =
$classMetadata->
getPropertyMetadata($constrainedProperty);
foreach ($propertyMetadata as $metadata) { $autoMapingStrategy = 'Not supported';
if ($metadata instanceof GenericMetadata
) { $autoMapingStrategy =
match ($metadata->
getAutoMappingStrategy()) { AutoMappingStrategy::ENABLED => 'Enabled',
AutoMappingStrategy::DISABLED => 'Disabled',
AutoMappingStrategy::NONE => 'None',
};
} $traversalStrategy = 'None';
if (TraversalStrategy::TRAVERSE ===
$metadata->
getTraversalStrategy()) {