On 2/12/07, Ask Bjørn Hansen <[EMAIL PROTECTED]> wrote:
> If I instead of
>
>      $p->add_prices
>          ({ price => 7.89, region => 'DE' },
>           { price => 1.11, region => 'JP' });
>
>      $p->save;
>
> do
>
>      $p->add_prices({ price => 7.89, region => 'DE' });,
>      $p->add_prices({ price => 1.11, region => 'JP' });,
>
>      $p->save;
>
> then it appears only the last ("JP") price gets added?
> Is this intentional, a bug or me doing something wrong?

That's the way it works right now.  I've considered allowing adds (and
perhaps deletes in the future) to queue up, but I'm not sure if the
added complexity is worth it.  This complexity is both internal, and
visible to the developer who must now keep track of even more possible
operations happening on save.

-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

Reply via email to