On 4/16/07 12:07 PM, Jonathan Vanasco wrote: > i'm thinking of the following naming scheme: > Helpers::object_as_yaml > Helpers::init_with_yaml_object > > ( using the term 'object' as it is a deep 'loaded related' object, > not a flat column/pairs )
How about "object_tree" instead of just "object" to better indicate that input/output isn't just a long object: $yaml = $o->object_tree_as_yaml; $o->init_with_yaml_object_tree($yaml); Actually, depending on how you plan to encode things, it may be more appropriate to take this approach in the second example: $o = object_tree_from_yaml($yaml); so you no longer need to know the class of the tree root. > I think i can query: > $obj->meta->foreign_keys > $obj->meta->relationships > > to get the status for the has_loaded_related fields Yep, that's the approach I'd take. -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