When importing data, say, from a CSV, I'd like to avoid rebuilding my form
object every time (it is built up from a somewhat complex config).

clearErrorMessages() looks like what I need, except that it doesn't appear
to clear all messages from all elements and subforms, and it doesn't set
_errorsExist to false.

So instead, I'm just going to clone a copy of the original form object as I
iterate over the data.

Is there a better way? If not, is this a reasonable feature request, that
is, to _really_ clear all messages so the object can be reused for batch
ops.
-- 
View this message in context: 
http://www.nabble.com/Zend_Form-clearErrorMessages-vs.-clone-the-object-tp25285029p25285029.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to