On 6/11/07 8:46 AM, Ovid wrote: > And when I try to delete the corresponding object in there: > > $self->delete_suspended; > > diag Dumper($self->suspended); > > I still have a Donhost::Server::Dedicated::Suspended object in there. > > I thought, "maybe I need to save it first":
You do, because the delete method created (by default) for a one-to-one relationship is a "delete_on_save" method. > $self->delete_suspended; > $self->save; > diag Dumper($self->suspended); > > > Nope: > > not ok 5 - cannot_reinitialize died (No foreign key named 'suspended' at > /usr/local/lib/perl5/site_perl/5.8.7/Rose/DB/Object.pm line 539 ... > # eval {...} called at > /usr/local/lib/perl5/site_perl/5.8.7/Rose/DB/Object.pm line 478 > # Rose::DB::Object::save() called at lib/Donhost/Server/Dedicated.pm > line 563 Is "cannot_reinitialize" one of your methods? If so, what does it look like? -John ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object