On 10/24/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > what was exactly happening in this case is : > I was saving an object 'as yaml' to memcached > I expected the object to contain with_object / require_objects > subclasses -- it does not
I'm not sure why you expected that. The docs for the column_values_as_yaml method say that it "Returns a string containing a YAML representation of the object's column values." That's pretty clear :) > share_db clones a new class of the default rose db object Generally speaking, the share_db parameter is an instruction to share the "parent" db object with all children. In the case of a Manager call, there is no "parent" object, since Manager methods are class methods. If you do not pass an explicit "db" parameter value to the call, a db object will be created for you by calling init_db() on the object_class. That newly created db object will then be shared with all objects fetched by the Manager. In the case of an object method, the share_db fk/relationship attribute should cause the child objects to get their db objects from the parent. If you find a case where this is not happening, then it's probably a bug and you should send me a reproduction of it so I can fix it. -John ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object