On Jul 29, 2006, at 9:44 AM, John Siracusa wrote:
> A what now? Data structure? These are objects! No poking around
> as if
> they were mere hashes! :) Methods are the approved way to modify
> the tree
> of objects. Fiddling around with the undocumented internals will
> only lead
> to tears. What are you trying to do?
no no no....
sorry, i should have done a data dumper
what i meant to say was this:
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
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object