public function ClassMetadata::getPropertyMetadata in Plug 7
Returns all metadata instances for the given named property.
If your implementation does not support properties, simply throw an exception in this method (for example a <tt>BadMethodCallException</tt>).
Parameters
string $property The property name.:
Return value
PropertyMetadataInterface[] A list of metadata instances. Empty if no metadata exists for the property.
Overrides PropertyMetadataContainerInterface::getPropertyMetadata
2 calls to ClassMetadata::getPropertyMetadata()
- ClassMetadata::accept in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ ClassMetadata.php - ClassMetadata::getMemberMetadatas in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ ClassMetadata.php - Returns all metadatas of members describing the given property.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ ClassMetadata.php, line 420
Class
- ClassMetadata
- Default implementation of {@link ClassMetadataInterface}.
Namespace
Symfony\Component\Validator\MappingCode
public function getPropertyMetadata($property) {
if (!isset($this->members[$property])) {
return array();
}
return $this->members[$property];
}