8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac6282f commit d564218Copy full SHA for d564218
reference/constraints/Timezone.rst
@@ -16,7 +16,7 @@ Basic Usage
16
-----------
17
18
Suppose you have a ``UserSettings`` class, with a ``timezone`` field that is a
19
-string meant to contain a timezone identifier (ie. ``America/New_York``):
+string meant to contain a timezone identifier (e.g. ``America/New_York``):
20
21
.. configuration-block::
22
@@ -72,7 +72,7 @@ string meant to contain a timezone identifier (ie. ``America/New_York``):
72
73
public static function loadValidatorMetadata(ClassMetadata $metadata)
74
{
75
- $metadata->addPropertyConstraint('startsAt', new Assert\Timezone());
+ $metadata->addPropertyConstraint('timezone', new Assert\Timezone());
76
}
77
78
0 commit comments