I checked in the changes to the default method types for foreign keys and
"... to one" relationships.  I selected "get_set_on_save" and
"delete_on_save" as the defaults.

Doing delete_on_save was a bit tricky because I had to account for setting
an attribute, then deleting it, then setting it to the original value again,
then saving, making sure that the queued up "delete" doesn't undo the "set"
during the save (since the "delete" necessarily comes after the "set" and
the main object "save")

Gah, confused yet? :)  Anyway, I added some more examples to the
object_by_key method maker documentation:

    perldoc Rose::DB::Object::MakeMethods::Generic

which should help make the changes a bit more clear.  I plan to make the
same changes for "... to many" relationships...which will be even more
messy, I imagine :)

-John




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Rose-db-object mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to