Re: [CDBI] Re: Error deleting object with has_many instances

[prev] [thread] [next] [Date index for 2006/02/08]

From: Dave Howorth
Subject: Re: [CDBI] Re: Error deleting object with has_many instances
Date: 12:14 on 08 Feb 2006
Peter Speltz wrote:
>  I had installed the  SVN version of Maypole which changed its
> "delete"  method in the model class. I had forgotten that Maypole
> Model CDBI has a delete method.  That pesky"delete" method was redone
> and failed on  deletes made from a cascade but worked when there was
> no cascade.
> 
> I always forget about those poorly named methods. I dont even know how
> to call Class::DBI 's delete. :)  What would that be
> $self->SUPER->SUPER::delete?  I'm cutting that method out of my copy 
> Maypole::Model::CDBI.pm

That's why I (and Dave B, I think) renamed Maypole's 'delete' action to 
'do_delete' :)  Saves a lot of aggro.

But the Maypole delete is supposed to automatically call the Class::DBI 
delete instead unless it's actually called as an action. It does that 
through an evil hack as it starts. Is the SVN version broken?

Cheers, Dave

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

Re: [CDBI] Re: Error deleting object with has_many instances
Dave Howorth 12:14 on 08 Feb 2006

Generated at 23:19 on 12 Feb 2006 by mariachi v0.52