Skip to content
Merged
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
7 changes: 3 additions & 4 deletions reference/constraints/Expression.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ properties::

To validate the object, you have some special requirements:

* A) If ``isTechnicalPost`` is true, then ``category`` must be either ``php``
or ``symfony``;

* B) If ``isTechnicalPost`` is false, then ``category`` can be anything.
A) If ``isTechnicalPost`` is true, then ``category`` must be either ``php``
or ``symfony``;
B) If ``isTechnicalPost`` is false, then ``category`` can be anything.

One way to accomplish this is with the Expression constraint:

Expand Down