John Siracusa wrote: > On 12/15/06, Christopher H. Laco <[EMAIL PROTECTED]> wrote: >> Will cascade work if I load the carts with just their pk/fk columns, and >> set with_objects to {} so they don't load the items? > > I think you mean [], not {} (actually, it'd be better to just omit the > with_objects param), but yeah, it'll work. delete(cascade => ...) > works off the relationship metadata, not the related objects that have > been loaded.
Well, if I load carts now, without specifying with_objects at all, and dump those objects using Data::Dump, the items are already populated. I assumed that I'd have to set with_pbjects to empty to get it to not do that... > > Don't forget to read the docs to remind yourself exactly what will be > cascaded, and how: > > http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object.pm#delete > > -John RTFM? Buuuwaahhaaahhaa.. :-) Thanks, -=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