$form['field']->getValue() works on the widget bind and just gives you
the value.
$form->getValue('field') will test to see if the field (widget) is
bound and set before returning the 'cleaned' value, otherwise it will
return null.
Perhaps when you are using $form->getValue('field') you are not
getting the results you expect because the field has not bound because
it failed validation?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---