title: zf2 validation form: How can I validate dependent fields?
body: <p>I have 5 text form</p>
  
  <pre><code>$number1 = new Text('number-1');
  $number2 = new Text('number-2');
  $number3 = new Text('number-3');
  ....
  </code></pre>
  
  <p>with the relative filters</p>
  
  <pre><code>foreach(...)
     $input = new Input($elementName);
     $validator = new ValidatorChain();
     $validator-&gt;addByName('Int')
         -&gt;addByName('Between', array(
            'min'=&gt;0,
            'max'=&gt;$this-&gt;maxAllowedTicket,
            'inclusive'=&gt;true));
     $filter = new FilterChain();
     $filter-&gt;attachByName('Int');
  
     $input-&gt;setValidatorChain($validator);
     $input-&gt;setFilterChain($filter);
  </code></pre>
  
  <p>I would that only one of this 3 forms can contain a value different from 0.
  There are then two possible errors.</p>
  
  <p>TOO MANY NUMBERS</p>
  
  <pre><code> $data['number1'] = 5;
   $data['number2'] = 5;
   $data['number3'] = 0;
   $data['number4'] = 5;
   $data['number5'] = 0;
  </code></pre>
  
  <p>NO NUMBER </p>
  
  <pre><code> $data['number1'] = 0;
   $data['number2'] = 0;
   $data['number3'] = 0;
   $data['number4'] = 0;
   $data['number5'] = 0;
  </code></pre>
  
  <p>How can I validate this multiple fields at the same time ?</p>