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_
> 
>     
> http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.763/lib/Rose/DB/Object/Tutorial.pod#Deleting_objects
>  
> 
> 
> is that what you're looking for?
> 
> 

no. I use that for deleting 'parent' objects, like Products I no longer want. I 
could use it (as in my earlier example) like:

  Prices::Manager->delete_prices(
    where => [ id => $price_id ]
  );

but that doesn't have the pleasing symmetrical feel of:

  $product->delete_prices( $price_id );

to go with:

  $product->add_prices( $price_id );


> There is also a 'briefly' documented fkey delete_ here ( its mentioned 
> on the very last line )
> 
>     
> http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.763/lib/Rose/DB/Object/Tutorial.pod#One-to-one_and_many-to-one_relationships
>  
> 

yes, that seems to be describing a 'one to one' or 'many to one' relationship. 
I'm talking about 'one to many' and 'many to many'.

cheers,
pek
-- 
Peter Karman  .  http://peknet.com/  .  [EMAIL PROTECTED]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to