Or you are extending sfPropelForm instead sfForm. I think sfPropelForm constructor doesn't take array as its argument, it takes object (propel object).
On Sat, Oct 11, 2008 at 9:57 AM, Sid Bachtiar <[EMAIL PROTECTED]> wrote: > Are you using the auto generated form class? E.g.: do you have a table > called 'message'? > > On Sat, Oct 11, 2008 at 6:06 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> When I try to set a default value for a form in the action like this: >> >> $this->form = new MessageForm(array('to' => $message->getUser())); >> >> I get this: >> >> Catchable fatal error: Argument 1 passed to >> sfFormPropel::__construct() must be an instance of BaseObject, array >> given, called in {THE DIRECTORY OF MY ACTIONS CLASS} on line 90 and >> defined in /usr/share/php/symfony/plugins/sfPropelPlugin/lib/propel/ >> sfFormPropel.class.php on line 42 >> >> Any help would be appreciated. >> >> >> >> >> > > > > -- > Visit my website: http://onlinesid.com > -- Visit my website: http://onlinesid.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---