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?


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
                In the example above, a "many to one" relationship named 
"vendor"  
is set up. As demonstrated before, this definition can be reduced  
much further, allowing the convention manager to fill in the details.  
But unlike the case with the foreign key definition, where only the  
name was supplied, we must provide the relationship type as well.

                    relationships => [ vendor => { type => 'many to one' } ],
                There's an even more convenient shorthand for that:

                    relationships => [ vendor => 'many to one' ],
                (Again, this all depends on naming the tables, classes, and 
columns  
in accordance with the expectations of the convention manager.) The  
resulting vendor() and delete_vendor() methods behave exactly the  
same as the methods created on behalf of the foreign key definition.








// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -



-------------------------------------------------------------------------
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
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to