I found the problem. I had created a custom post validator like this:

class sfValidatorFoo extends sfValidatorBase
{
  public function doClean($value)
  {
  }
}

and because it doesn't return anything (null), all values were getting
filtered out. It works when I add this single line in the doClean() method:

return $value;

Thanks Nick. You're welcome Nick. Obama 2008.


2009/3/25 Nickolas Daskalou <[email protected]>

> sf 1.2, Propel 1.3.
>
> I love Symfony. I hate the forms framework. Probably because I don't
> understand how it all ties together. Anyway, my problem:
>
> I've bound a form ($form->bind($tainted_values)) and $form->isValid()
> returns true, as does $form->isBound().
>
> However, when I try to access the values via $form->getValues(), I get
> null. What's even more strange is that I can gain access to each value
> individually like this:
>
> $form['value_name']->getValue()
>
> Note that this is a form I have manually created and extended from the
> sfForm class.
>
> Does anyone know what the .... is going on?
>
> How can I get access to all of the form values at once instead of
> manually getting each one?
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to