With the new "arbitrary-depth joins" feature, you can join as deep as you'd
like. The syntax I'm using for this feature right now is a chain of
relationship names, with "." between each one. Example:
$products =
Product::Manager->get_products(
require_objects => [ 'vendor.addresses.state' ]);
Hm, good point. OTOH, the things in this list are not table names. They're
relationship names, which are basically arbitrary and don't have to match up
with table names at all. But I can see how the similar syntax could lead
someone to the wrong conclusion.
require_objects => [ 'vendor > addresses > state' ]);
Would an arrayref make sense?
require_objects => [ qw(vendor addresses state) ]
Might make query builders easier to implement too. This can always be
optional too -- your code could check if a string or an arrayref was
passed in - you're probably doing a split() anyway.
--Torsten
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object