Re: [symfony-users] How to properly override Doctrine_Record::delete()?

2010-02-08 Thread Thomas Rabaix
You should use preDelete and postDelete methods. class YouModel extends BaseModel { public function postDelete() { // no your code // ex: unlink($this-file) } } On Sat, Feb 6, 2010 at 9:54 AM, Absalón Valdés absal...@gmail.com wrote: hi. you can use a event handler adn the catch

Re: [symfony-users] How to properly override Doctrine_Record::delete()?

2010-02-06 Thread Absalón Valdés
hi. you can use a event handler adn the catch delete execution, e.g: class backendConfiguration extends sfApplicationConfiguration { public function configure() { $this-dispatcher-connect('admin.delete_object', array($this,'xmethod')); } public function xmethod(sfEvent $event) {

[symfony-users] How to properly override Doctrine_Record::delete()?

2010-02-05 Thread Darren884
Does anyone have any simple example code I can place into my objects model to override this function? I need to add some stuff into it. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to