Skip to content

Commit d782473

Browse files
committed
Minor tweak
1 parent 7940826 commit d782473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/validator/resources.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ If you use annotations instead of attributes, it's also required to call
114114

115115
$validator = Validation::createValidatorBuilder()
116116
->enableAnnotationMapping()
117-
->addDefaultDoctrineAnnotationReader() // Only if annotations are used
117+
->addDefaultDoctrineAnnotationReader() // add this only when using annotations
118118
->getValidator();
119119

120120
To disable the annotation loader after it was enabled, call

0 commit comments

Comments
 (0)