--- John Siracusa <[EMAIL PROTECTED]> wrote:
> > [...] How can I have my server delete the suspended record without
> the server
> > ID going away?
> 
> This is probably the best way to do it:
> 
>     $server->delete_suspended;
>     $server->save;
> 
> Unfortunately, in your example, that will fail (I think) because a
> column in
> the left-hand side of the column_map in the suspended relationship is
> part
> of the primary key of the server class.  I'll try to add a fix for
> this soon.  Any strong feelings about how it *should* behave?

Yup.  Same behavior.  Darn.  I can work around this with a 'one to
many' relationship, but that's more pain than it's worth.  I'm just
going to delete the relationship and code everything by hand.

And I can't say I have strong feelings about how this should behave. 
'one to optional one' should just allow me to set up an 'optional'
second class to be associated with the primary class and delete the
second class, as needed.  e.g., if 'A' has an optional 'B', the
existence or non-existence of 'B' should have no material affect on
'A'.

Cheers,
Ovid

--

Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

-------------------------------------------------------------------------
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

Reply via email to