I'm having a brain freeze, and I'll blame working with both DBIC and RDBO at the same time. :-)
Classic example, cart and cart_item tables in a one to many. I have a relationship 'items' setup, and it returns all of the carts items using $cart->items...but for the life of me, I can't figure out how to only return some of the items after staring at the docs all day (which means it's something obvious and easy). :-/ In the current DBIC code, I load a cart, and then load items only if they're needed (sometimes I just want to iterate cart names, not their contents). The items() sub has the option of only loading items matching a filter (sku => 'A%', etc). Can this be done with the auto generated items() relationship accessor? Or it it better to use an manager to only load items for the current carts id? -=Chris
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- 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