Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reference/constraints/Choice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ If your valid choice list is simple, you can pass them in directly via the
{
$metadata->addPropertyConstraint('gender', new Assert\Choice(array(
'choices' => array('male', 'female'),
'message' => 'Choose a valid gender',
'message' => 'Choose a valid gender.',
)));
}
}
Expand Down
2 changes: 1 addition & 1 deletion reference/constraints/Max.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ add the following:
{
$metadata->addPropertyConstraint('age', new Assert\Max(array(
'limit' => 50,
'message' => "You must be 50 or under to enter.",
'message' => 'You must be 50 or under to enter.',
)));
}
}
Expand Down
6 changes: 3 additions & 3 deletions reference/constraints/True.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Then you can constrain this method with ``True``.
Acme\BlogBundle\Entity\Author:
getters:
tokenValid:
- "True": { message: "The token is invalid" }
- "True": { message: "The token is invalid." }

.. code-block:: php-annotations

Expand Down Expand Up @@ -78,7 +78,7 @@ Then you can constrain this method with ``True``.
<class name="Acme\BlogBundle\Entity\Author">
<getter property="tokenValid">
<constraint name="True">
<option name="message">The token is invalid...</option>
<option name="message">The token is invalid.</option>
</constraint>
</getter>
</class>
Expand All @@ -98,7 +98,7 @@ Then you can constrain this method with ``True``.
public static function loadValidatorMetadata(ClassMetadata $metadata)
{
$metadata->addGetterConstraint('tokenValid', new True(array(
'message' => 'The token is invalid',
'message' => 'The token is invalid.',
)));
}

Expand Down