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
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)
{
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