Hi guys I finally found the solution. The setOptions does not work
with FilterForms.

You must edit /lib/generate/sfModelGeneratorConfiguration.php and make
getFilterForm resemble getForm so it can contain options.

The first instance of the getFilterForm will be called in the
protected buildQuery method which you can pass the options to.

I hope this helps anyone who had as much trouble as I did with this
issue.

Thanks,
Darren

On Jan 15, 2:51 pm, Darren884 <darren...@gmail.com> wrote:
> Can someone please tell me or show me an example on how to access a
> form filter object from within an action so I can pass objects and
> variables to it? This is killing me that Symfony does not allow
> instances to travel globally.
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to