On 12/15/06, Christopher H. Laco <[EMAIL PROTECTED]> wrote: > 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.
That doesn't sound right. Something else must be happening. Turn on debugging and see what queries are actually being run, and when. $Rose::DB::Object::Debug = 1; $Rose::DB::Object::Manager::Debug = 1; -John ------------------------------------------------------------------------- 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