Re: [RDBO] cached relationship data

2007-01-17 Thread John Siracusa
On 1/17/07 7:12 PM, Cory Bennett wrote: > Is there a way to reset the data cached from relationship queries? Just set the collection to undef: $p->prices(undef); @prices = $p->prices; # re-fetched from the database here -John ---

[RDBO] cached relationship data

2007-01-17 Thread Cory Bennett
Is there a way to reset the data cached from relationship queries? If I have something like: my $p = Product->new(name => "Kite")->load(); for my $price ( $p->prices() ) { print "price: ", $price->price, "[", $price->region, "]\n"; } Which prints: price: 7.79[DE] price: 1.11[JP] The in the s