title: How can I define a set of values for the NotEqualTo constraint?
body: <p>When using the <a href="http://symfony.com/doc/current/reference/constraints/NotEqualTo.html" rel="nofollow">NotEqualTo validator constraint</a>, I want to define more than one value.</p>
  
  <p>This is how it is used for one value:</p>
  
  <pre><code># src/SocialBundle/Resources/config/validation.yml
  Acme\SocialBundle\Entity\Person:
      properties:
          age:
              - NotEqualTo:
                  value: 15
  </code></pre>
  
  <p>But how can I define a set (an array) of values? I tried</p>
  
  <pre><code>            - NotEqualTo:
                  value: 15
                  value: 16
                  value: 17
  </code></pre>
  
  <p>and</p>
  
  <pre><code>            - NotEqualTo:
                  value: [15, 16, 17]
  </code></pre>
  
  <p>but both approaches didn't work.</p>