CodeExplorer getConstrainedPropertiesData example
$classMetadata =
$this->validator->
getMetadataFor($class);
foreach ($this->
getClassConstraintsData($classMetadata) as $data) { $rows[] =
[ '-',
$data['class'
],
implode(', ',
$data['groups'
]),
$dump($data['options'
]),
];
} foreach ($this->
getConstrainedPropertiesData($classMetadata) as $propertyName =>
$constraintsData) { foreach ($constraintsData as $data) { $rows[] =
[ $propertyName,
$data['class'
],
implode(', ',
$data['groups'
]),
$dump($data['options'
]),
];
} } if (!
$rows) { $classMetadata =
$this->validator->
getMetadataFor($class);
foreach ($this->
getClassConstraintsData($classMetadata) as $data) { $rows[] =
[ '-',
$data['class'
],
implode(', ',
$data['groups'
]),
$dump($data['options'
]),
];
} foreach ($this->
getConstrainedPropertiesData($classMetadata) as $propertyName =>
$constraintsData) { foreach ($constraintsData as $data) { $rows[] =
[ $propertyName,
$data['class'
],
implode(', ',
$data['groups'
]),
$dump($data['options'
]),
];
} } if (!
$rows) {