Skip to content

Commit

Permalink
bug #4145 Fix documentation for group_sequence_provider (giosh94mhz)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

Fix documentation for group_sequence_provider

The current documentation for `group_sequence_provider` option in the docs is wrong.
It states that the option should be set with:
```YAML
Your\Class\Name:
    group_sequence_provider: ~
    ...
````
But this didn't work.

By looking at the unit test I came up the the right version:
```YAML
Your\Class\Name:
    group_sequence_provider: true
    ...
````

Commits
-------

81cec5d Fix documentation for group_sequence_provider
  • Loading branch information
weaverryan committed Aug 25, 2014
2 parents bccb080 + 81cec5d commit eaaa35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ provides a sequence of groups to be validated:
# src/Acme/DemoBundle/Resources/config/validation.yml
Acme\DemoBundle\Entity\User:
group_sequence_provider: ~
group_sequence_provider: true
.. code-block:: php-annotations
Expand Down

0 comments on commit eaaa35a

Please sign in to comment.