On 6/7/07 11:06 AM, Adrian Howard wrote: > I had expected this: > > $o->add_foos( $foo1, $foo2 ); > > to be the same as: > > $o->add_foos( $foo1 ); > $o->add_foos( $foo2 ); > $o->save;
It's not. The last add is the only one that counts. That may change someday, but for now that's how it is. > 2) If the latter, why does calling $o->foos() return both $foo1 and > $foo2 before I save the object? Call it a "strange side-effect" :) -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