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
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/
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 }
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_
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;