On 7/29/06 3:22 PM, Jonathan Vanasco wrote: > on a one->many join , there is a method that access suboridinate objects > > one can call an update/delete on the main object or the subordinate > objects, as they're all rose db objects > > foreach my $obj ( $roseobj->joins ) { > $obj->field(value) > $obj->update; > $obj->delete > } > > when doing a delete; however, it executes the db code to delete the > object- it doesn't delete the obj from the rose obj > > to get the functionality i want i do > > $obj->delete > $obj= undef; > > though i realize that a caveat is dealing with transactions
Ah, gotcha. But how would the functionality you describe be implemented? You want a method call on an object that's part of a list being iterated over to cause that object to delete itself from the list. That's pretty spooky behavior, and I'm not sure how many people would expect it to work that way. -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