Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread Daniel Lohse
You're welcome and I'm glad, that is does! :) Cheers, Daniel On Jan 8, 2010, at 5:42 PM, g0d br wrote: > That works Daniel. > > Thank You > > On Fri, Jan 8, 2010 at 7:46 AM, Daniel Lohse > wrote: > Set the validator for this specific field like this: > > $this->validatorSchema['imagem

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread g0d br
That works Daniel. Thank You On Fri, Jan 8, 2010 at 7:46 AM, Daniel Lohse wrote: > Set the validator for this specific field like this: > > $this->validatorSchema['imagem'] = new sfValidatorFile(array( > 'required' => $this->isNew(), > 'path' => ... > ... > )); > > So the field is only required

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread Daniel Lohse
Set the validator for this specific field like this: $this->validatorSchema['imagem'] = new sfValidatorFile(array( 'required' => $this->isNew(), 'path' => ... ... )); So the field is only required when it's a new object. Is that what

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-07 Thread g0d br
Hi, I still having this problem. Im using sfWidgetFormInputFileEditable for a backend form and when i edit the record with the image i have to choose the image file again otherwise i get required error for the file. the problem is that i don wanna change the file but every time i have to choose

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2009-12-11 Thread g0d br
i get the error when i try to edit an record. create and delete works fine but if i try to edit an record and dont select any file when i hit save the required error appears. Thanks Celso On Fri, Dec 11, 2009 at 5:11 AM, Alexandru-Emil Lupu wrote: > When you get that required error? Better wha

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2009-12-10 Thread Alexandru-Emil Lupu
When you get that required error? Better what are you trying to achieve? sent via htc magic On Dec 11, 2009 1:11 AM, "g0d br" wrote: Hi, I have an schema like this: banner: id: ~ ordem: { type: integer, required: true } imagem: { type: varchar(255), required: true } link: { ty

[symfony-users] sfWidgetFormInputFileEditable admin required file

2009-12-10 Thread g0d br
Hi, I have an schema like this: banner: id: ~ ordem: { type: integer, required: true } imagem: { type: varchar(255), required: true } link: { type: varchar(255), required: false } When i edit an record in admin module i get an error Required for imagem field. Thats the code in B