On 7 Jun 2007, at 16:10, John Siracusa wrote:

> 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.

Check. Might be nice if this was a little more explicit in the docs -  
but only if you have some spare time :-)

>
>> 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" :)

heh!

Adrian

-------------------------------------------------------------------------
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

Reply via email to