-- Marc Tempelmeier <m.tempelme...@bqs-institut.de> wrote (on Monday, 08 October 2012, 03:46 PM +0200): <snip> > Both errors are shown (foo & bar) when the input is empty, like I > expected. Now I want to break after the first error. > > I added: > > $unit->add(array( > 'name' => 'xmlEnding', > 'validators' => array( > array( > 'name' => 'NotEmpty', > 'options' => array( > 'message' => 'foo', > 'break_chain_on_failure' => true > ) > ),
The problem is that "break_chain_on_failure" needs to be at the same level as "name" and "options": array( 'name' => 'NotEmpty', 'options' => array( 'message' => 'foo', ), 'break_chain_on_failure' => true, ) -- Matthew Weier O'Phinney Project Lead | matt...@zend.com Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com