I've checked in the new "one to many" relationship types "get_set_now",
"get_set_on_save", "add_now", and "add_on_save". The defaults are now
"get_set_on_save" and "add_on_save".
I also added a new "with => ..." option to load(). It takes the same kinds
of arguments as the "with_objects" Manager parameter. Example:
$product->load(with => [ 'colors', 'categories' ]);
@cats = $product->categories; # does not hit the db
@colors = $product->colors; # does not hit the db
Finally, I added (well, re-added, really) an optimization in load() that
requires subclasses to pass an alias to the actual invocant, rather than a
copy. The change is documented in the RDBO load() method docs. I don't
think it's too much to ask of subclasses, and it really does save a lot of
redundant work, especially when loading "with => ..." sub-objects.
Opinions?
-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