diff --git a/reference/constraints/All.rst b/reference/constraints/All.rst index b7941006504..7859e574d26 100644 --- a/reference/constraints/All.rst +++ b/reference/constraints/All.rst @@ -51,6 +51,22 @@ entry in that array: protected $favoriteColors = array(); } + .. code-block:: xml + + + + + + + + + + Now, each entry in the ``favoriteColors`` array will be validated to not be blank and to be at least 5 characters long. diff --git a/reference/constraints/Choice.rst b/reference/constraints/Choice.rst index 907b301dcd0..e62f9924d9d 100644 --- a/reference/constraints/Choice.rst +++ b/reference/constraints/Choice.rst @@ -49,7 +49,7 @@ If your valid choice list is simple, you can pass them in directly via the .. code-block:: xml - +