Re: [RDBO] Stale results from relationship accessors

2008-02-04 Thread Sam Tregar
On Feb 1, 2008 8:56 PM, Peter Karman <[EMAIL PROTECTED]> wrote: > Wonder if something like this would make a useful Helper: > > sub forget { > my $self = shift; > my $accessor = shift or croak "need accessor name"; > $self->$accessor( undef ); > } > I like that a lot. I think I'

Re: [RDBO] Stale results from relationship accessors

2008-02-01 Thread Peter Karman
John Siracusa wrote on 2/1/08 4:50 PM: > On Feb 1, 2008 4:49 PM, Sam Tregar <[EMAIL PROTECTED]> wrote: >> But without the reload subscribed_lists() keeps returning the old list. Is >> there a way to tip off Rose that any cached lists for a particular >> relationship are stale? Or something I'm

Re: [RDBO] Stale results from relationship accessors

2008-02-01 Thread Sam Tregar
On Feb 1, 2008 5:50 PM, John Siracusa <[EMAIL PROTECTED]> wrote: > To make an object forget a previously fetched set, just set it to undef: Cool, that works for me. Thanks! -sam - This SF.net email is sponsored by: Microso

Re: [RDBO] Stale results from relationship accessors

2008-02-01 Thread John Siracusa
On Feb 1, 2008 4:49 PM, Sam Tregar <[EMAIL PROTECTED]> wrote: > But without the reload subscribed_lists() keeps returning the old list. Is > there a way to tip off Rose that any cached lists for a particular > relationship are stale? Or something I'm doing wrong? All get_set* relationship access

[RDBO] Stale results from relationship accessors

2008-02-01 Thread Sam Tregar
Hello all. I'm working on modeling a many-to-many relationship with some meta-data stored in the map table. Here's the relationship definition: $meta->relationship(subscribed_lists => { type => 'many to many',