@@ -112,8 +112,9 @@ following:
112
112
113
113
.. tip ::
114
114
115
- Protected and private properties can also be validated, as well as "getter"
116
- methods (see :ref: `validator-constraint-targets `).
115
+ Symfony's validator uses PHP reflection, as well as *"getter" * methods, to
116
+ get the value of any property, so they can be public, private or protected
117
+ (see :ref: `validator-constraint-targets `).
117
118
118
119
.. index ::
119
120
single: Validation; Using the validator
@@ -327,7 +328,7 @@ literature genre mostly associated with the author, which can be set to either
327
328
328
329
// src/Entity/Author.php
329
330
namespace App\Entity;
330
-
331
+
331
332
// ...
332
333
use Symfony\Component\Validator\Constraints as Assert;
333
334
@@ -381,7 +382,7 @@ literature genre mostly associated with the author, which can be set to either
381
382
382
383
// src/Entity/Author.php
383
384
namespace App\Entity;
384
-
385
+
385
386
// ...
386
387
use Symfony\Component\Validator\Constraints as Assert;
387
388
use Symfony\Component\Validator\Mapping\ClassMetadata;
@@ -416,7 +417,7 @@ options can be specified in this way.
416
417
417
418
// src/Entity/Author.php
418
419
namespace App\Entity;
419
-
420
+
420
421
// ...
421
422
use Symfony\Component\Validator\Constraints as Assert;
422
423
@@ -464,7 +465,7 @@ options can be specified in this way.
464
465
465
466
// src/Entity/Author.php
466
467
namespace App\Entity;
467
-
468
+
468
469
// ...
469
470
use Symfony\Component\Validator\Constraints as Assert;
470
471
use Symfony\Component\Validator\Mapping\ClassMetadata;
@@ -585,7 +586,7 @@ class to have at least 3 characters.
585
586
586
587
// src/Entity/Author.php
587
588
namespace App\Entity;
588
-
589
+
589
590
// ...
590
591
use Symfony\Component\Validator\Constraints as Assert;
591
592
use Symfony\Component\Validator\Mapping\ClassMetadata;
@@ -627,7 +628,7 @@ this method must return ``true``:
627
628
628
629
// src/Entity/Author.php
629
630
namespace App\Entity;
630
-
631
+
631
632
// ...
632
633
use Symfony\Component\Validator\Constraints as Assert;
633
634
@@ -672,7 +673,7 @@ this method must return ``true``:
672
673
673
674
// src/Entity/Author.php
674
675
namespace App\Entity;
675
-
676
+
676
677
// ...
677
678
use Symfony\Component\Validator\Constraints as Assert;
678
679
use Symfony\Component\Validator\Mapping\ClassMetadata;
0 commit comments