CodeExplorer PropertyInfoLoader example
true,
true,
true,
true,
true,
true,
false,
true
)) ;
$propertyInfoLoader =
new PropertyInfoLoader($propertyInfoStub,
$propertyInfoStub,
$propertyInfoStub, '{.*}'
);
$validator = Validation::
createValidatorBuilder() ->
enableAttributeMapping() ->
addLoader($propertyInfoLoader) ->
getValidator() ;
$classMetadata =
$validator->
getMetadataFor(new PropertyInfoLoaderEntity());
$nullableStringMetadata =
$classMetadata->
getPropertyMetadata('nullableString'
);
$this->
assertCount(1,
$nullableStringMetadata);