public function TestLoader::loadClassMetadata in Plug 7
Loads validation metadata into a {@link ClassMetadata} instance.
Parameters
ClassMetadata $metadata The metadata to load:
Return value
bool Whether the loader succeeded
Overrides LoaderInterface::loadClassMetadata
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Mapping/ Factory/ LazyLoadingMetadataFactoryTest.php, line 114
Class
Namespace
Symfony\Component\Validator\Tests\Mapping\FactoryCode
public function loadClassMetadata(ClassMetadata $metadata) {
$metadata
->addConstraint(new ConstraintA());
}