#568: Allowing validator to filter failed arguments with explicit throwError
-------------------------------------+--------------------------------------
 Reporter:  mail [ät] digitarald.de  |       Owner:  dominik                    
    
     Type:  defect                   |      Status:  new                        
    
 Priority:  normal                   |   Milestone:  0.11                       
    
Component:  validation               |     Version:  0.11.0RC5                  
    
 Severity:  normal                   |    Keywords:  validate fieldresult 
throwError
-------------------------------------+--------------------------------------
 This problem occurs for validators with multiple arguments, when you want
 to throw errors only for specific fields and pass validation for the rest.
 The validator I'm working on, validates a Doctrine record setting all
 given arguments. With the current implementation all fields have an error
 result when the validator returns false, even if they do not have an
 error.

 A possible solution, discussed with kaos in irc, that "if you explicitly
 call throwError with the failed fields [...] only these should fail as
 well [...] but that's a breaking change [...] ok, it's really a bug, so i
 think we can fix that".

-- 
Ticket URL: <http://trac.agavi.org/ticket/568>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to