File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -527,8 +527,8 @@ of the form fields::
527
527
Constraint Targets
528
528
------------------
529
529
530
- Constraints can be applied to a class property (e.g. ``name ``), a public
531
- getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
530
+ Constraints can be applied to a class property (e.g. ``name ``),
531
+ a getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
532
532
are the most common and easy to use. Getter constraints allow you to specify
533
533
more complex validation rules. Finally, class constraints are intended
534
534
for scenarios where you want to validate a class as a whole.
@@ -643,7 +643,7 @@ Getters
643
643
~~~~~~~
644
644
645
645
Constraints can also be applied to the return value of a method. Symfony
646
- allows you to add a constraint to any public method whose name starts with
646
+ allows you to add a constraint to any private, protected or public method whose name starts with
647
647
"get", "is" or "has". In this guide, these types of methods are referred to
648
648
as "getters".
649
649
You can’t perform that action at this time.
0 commit comments