[RDBO] delete_prices()

2007-03-09 Thread Peter Karman
When I define a relationship in my (mythical) Product class called 'prices' (as per the Tutorial), I get all kinds of magic methods for free. So in addition to the usual: $product-delete; $product-save; I can also do: $product-prices($price_id); # replace all prices with

Re: [RDBO] delete_prices()

2007-03-09 Thread Jonathan Vanasco
On Mar 9, 2007, at 10:01 AM, Peter Karman wrote: But I don't get this magical method: $product-delete_prices($price_id); The only delete_ function I use is the manager method delete_ http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.763/lib/Rose/DB/

Re: [RDBO] delete_prices()

2007-03-09 Thread John Siracusa
On 3/9/07, Peter Karman [EMAIL PROTECTED] wrote: But I don't get this magical method: $product-delete_prices($price_id); which would be equivalent to: sub delete_prices { my $self = shift;# Product my $price_id = shift; my @keep = grep { $_-id ne $price_id }

Re: [RDBO] delete_prices()

2007-03-09 Thread Peter Karman
Jonathan Vanasco scribbled on 3/9/07 9:35 AM: On Mar 9, 2007, at 10:01 AM, Peter Karman wrote: But I don't get this magical method: $product-delete_prices($price_id); The only delete_ function I use is the manager method delete_

Re: [RDBO] delete_prices()

2007-03-09 Thread Peter Karman
John Siracusa scribbled on 3/9/07 9:45 AM: On 3/9/07, Peter Karman [EMAIL PROTECTED] wrote: But I don't get this magical method: $product-delete_prices($price_id); which would be equivalent to: sub delete_prices { my $self = shift;# Product my $price_id = shift;