Re: Deleting from $film->stars in Many to Many Example

[prev] [thread] [next] [Date index for 2004/11/23]

From: Peter Speltz
Subject: Re: Deleting from $film->stars in Many to Many Example
Date: 16:09 on 23 Nov 2004
--- Perrin Harkins <perrin@xxxx.xxx> wrote:

> On Mon, 2004-11-22 at 17:34, Peter Speltz wrote:
> > > Role->delete( actor => $actor, film => $film );
> > > 
> > 
> > That's what i'm after. Thanks so much. For some reason I had it in my mind
> > delete was strictly and object method. Don't know where i got that idea.

I know where now. Docs only show mention it as a object method from what i saw.
 
> 
> Well, the other way to do it is to search and then delete_all():
> 
> Role->search( actor => $actor, film => $film )->delete_all()
> 
> - Perrin
> 

cool, thanks.



=====
pjs

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Deleting from $film->stars in Many to Many Example
Peter Speltz 16:09 on 23 Nov 2004

Generated at 17:24 on 02 Dec 2004 by mariachi v0.52