Skip to content

Commit

Permalink
Fixed the issues reported by @xabbuh
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz authored and weaverryan committed Jun 28, 2015
1 parent 7003445 commit 39f46e1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions reference/constraints/GreaterThan.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ than another value, see :doc:`/reference/constraints/LessThan`.
+----------------+---------------------------------------------------------------------------+
| Options | - `value`_ |
| | - `message`_ |
| | - `payload`_ |
+----------------+---------------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThan` |
+----------------+---------------------------------------------------------------------------+
Expand All @@ -30,7 +31,7 @@ If you want to ensure that the ``age`` of a ``Person`` class is greater than

.. code-block:: yaml
# src/SocialBundle/Resources/config/validation.yml
# src/Acme/SocialBundle/Resources/config/validation.yml
Acme\SocialBundle\Entity\Person:
properties:
age:
Expand Down Expand Up @@ -93,7 +94,7 @@ Comparing Dates
---------------

.. versionadded:: 2.6
The feature to compare dates was added in Symfony 2.6.
The feature to compare dates was introduced in Symfony 2.6.

This constraint can be used to compare ``DateTime`` objects against any date
string `accepted by the DateTime constructor`_. For example, you could check
Expand Down Expand Up @@ -287,4 +288,6 @@ message
This is the message that will be shown if the value is not greater than the
comparison value.

.. include:: /reference/constraints/_payload-option.rst.inc

.. _`accepted by the DateTime constructor`: http://www.php.net/manual/en/datetime.formats.php
4 changes: 2 additions & 2 deletions reference/constraints/GreaterThanOrEqual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ or equal to ``18``, you could do the following:

.. code-block:: yaml
# src/SocialBundle/Resources/config/validation.yml
# src/Acme/SocialBundle/Resources/config/validation.yml
Acme\SocialBundle\Entity\Person:
properties:
age:
Expand Down Expand Up @@ -92,7 +92,7 @@ Comparing Dates
---------------

.. versionadded:: 2.6
The feature to compare dates was added in Symfony 2.6.
The feature to compare dates was introduced in Symfony 2.6.

This constraint can be used to compare ``DateTime`` objects against any date
string `accepted by the DateTime constructor`_. For example, you could check
Expand Down
4 changes: 2 additions & 2 deletions reference/constraints/LessThan.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If you want to ensure that the ``age`` of a ``Person`` class is less than

.. code-block:: yaml
# src/SocialBundle/Resources/config/validation.yml
# src/Acme/SocialBundle/Resources/config/validation.yml
Acme\SocialBundle\Entity\Person:
properties:
age:
Expand Down Expand Up @@ -93,7 +93,7 @@ Comparing Dates
---------------

.. versionadded:: 2.6
The feature to compare dates was added in Symfony 2.6.
The feature to compare dates was introduced in Symfony 2.6.

This constraint can be used to compare ``DateTime`` objects against any date
string `accepted by the DateTime constructor`_. For example, you could check
Expand Down
4 changes: 2 additions & 2 deletions reference/constraints/LessThanOrEqual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ equal to ``80``, you could do the following:

.. code-block:: yaml
# src/SocialBundle/Resources/config/validation.yml
# src/Acme/SocialBundle/Resources/config/validation.yml
Acme\SocialBundle\Entity\Person:
properties:
age:
Expand Down Expand Up @@ -92,7 +92,7 @@ Comparing Dates
---------------

.. versionadded:: 2.6
The feature to compare dates was added in Symfony 2.6.
The feature to compare dates was introduced in Symfony 2.6.

This constraint can be used to compare ``DateTime`` objects against any date
string `accepted by the DateTime constructor`_. For example, you could check
Expand Down

0 comments on commit 39f46e1

Please sign in to comment.