Re: [symfony-users] $form-getErrors() returns an empty array even $form-isValid() evaluates to false

2011-05-03 Thread Bernhard Schussek
Hi Ville, getErrors() only returns the errors of that specific Form instance, but not of any children. You can loop through the Form children and call getErrors() on them to receive their errors. Hope I helped, Bernhard -- If you want to report a vulnerability issue on symfony, please send it

[symfony-users] $form-getErrors() returns an empty array even $form-isValid() evaluates to false

2011-04-26 Thread Ville Mattila
Hi there, I've been refactoring our app to conform most recent (and excellent) Form component changes. Before it was possible to override $form- validate() to do some custom validation, however now it seems to be obsolete. I've moved validation constraints into the data object by defining a