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 @@ -453,8 +453,8 @@ of the form fields::
453
453
Constraint Targets
454
454
------------------
455
455
456
- Constraints can be applied to a class property (e.g. ``name ``), a public
457
- getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
456
+ Constraints can be applied to a class property (e.g. ``name ``),
457
+ a getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
458
458
are the most common and easy to use. Getter constraints allow you to specify
459
459
more complex validation rules. Finally, class constraints are intended
460
460
for scenarios where you want to validate a class as a whole.
@@ -555,7 +555,7 @@ Getters
555
555
~~~~~~~
556
556
557
557
Constraints can also be applied to the return value of a method. Symfony
558
- allows you to add a constraint to any public method whose name starts with
558
+ allows you to add a constraint to any private, protected or public method whose name starts with
559
559
"get", "is" or "has". In this guide, these types of methods are referred to
560
560
as "getters".
561
561
You can’t perform that action at this time.
0 commit comments