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 @@ -519,8 +519,8 @@ of the form fields::
519
519
Constraint Targets
520
520
------------------
521
521
522
- Constraints can be applied to a class property (e.g. ``name ``), a public
523
- getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
522
+ Constraints can be applied to a class property (e.g. ``name ``),
523
+ a getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
524
524
are the most common and easy to use. Getter constraints allow you to specify
525
525
more complex validation rules. Finally, class constraints are intended
526
526
for scenarios where you want to validate a class as a whole.
@@ -635,7 +635,7 @@ Getters
635
635
~~~~~~~
636
636
637
637
Constraints can also be applied to the return value of a method. Symfony
638
- allows you to add a constraint to any public method whose name starts with
638
+ allows you to add a constraint to any private, protected or public method whose name starts with
639
639
"get", "is" or "has". In this guide, these types of methods are referred to
640
640
as "getters".
641
641
You can’t perform that action at this time.
0 commit comments