Ok, something you've got in there is causing problems then. I'd pick
apart
my form piece by piece to find it and I start by removing the bind()
method you've added. The fact that the sfFormPropel::saveFile() method
was called means that your imagefile column IS indeed an
sfValidatorFile
object as it should be. So, the question is, why isn't the imagefile
value in your form an sfValidatedFile object as it should be.

Pick apart your form (without the updateImagefileColumn method) until
you stop getting this error. Taking out anything that's not essential.

-Ryan

On Apr 9, 12:00 pm, Arnold Ispan <[email protected]> wrote:
> Ok
>
> So i removed the updateImagefileColumn method and this is what i got:
>
> *Catchable fatal error*: Argument 3 passed to sfFormPropel::saveFile() must
> be an instance of sfValidatedFile, array given, called in
> /usr/share/php/symfony/plugins/sfPropelPlugin/lib/form/sfFormPropel.class.php
> on line 465 and defined in *
> /usr/share/php/symfony/plugins/sfPropelPlugin/lib/form/sfFormPropel.class.php
> * on line *498*
>
> :(
>
> Also both the widget and validator work if the file field is in a main form.
> The overwriting of the bind method i got it from :
>
> http://stereointeractive.com/blog/2008/12/23/symfony-12-upload-a-file...
--~--~---------~--~----~------------~-------~--~----~
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