Re: [symfony-users] sfWidgetFormInputFileEditable no updating the file when edit

2009-12-29 Thread Alexandru-Emil Lupu
Sorry. That has to be in your model class Alecs sent via htc magic On Dec 29, 2009 9:05 PM, "Alexandru-Emil Lupu" wrote: Override your delete method to: Public function delete(PropelPDO/ DoctrinePDO $con = null) { @unlink($this->getFilePath()); Parent::delete($con); } Or appropriate to f

Re: [symfony-users] sfWidgetFormInputFileEditable no updating the file when edit

2009-12-29 Thread Alexandru-Emil Lupu
Override your delete method to: Public function delete(PropelPDO/ DoctrinePDO $con = null) { @unlink($this->getFilePath()); Parent::delete($con); } Or appropriate to fix full path to the file, and also the appropriate db adaptor. Alecs sent via htc magic On Dec 29, 2009 7:44 PM, "ilcaduceo"

[symfony-users] sfWidgetFormInputFileEditable no updating the file when edit

2009-12-29 Thread ilcaduceo
Hi all, I'm using the sfWidgetFormInputFileEditable for simple uploading of file in the filesystem and then storing name in the database associated with a model, but I noticed that when I'm editing/ deleting the model the old images remain in the filesystem... I want that when edit the image in the