On 10/28/07 10:45 PM, Arshavir Grigorian wrote:
> On 10/28/07, John Siracusa <[EMAIL PROTECTED]> wrote:
>>> Also, I am using t2s() to add the mapping for $t2_id, but the mapping
>>> record for $t1 are not deleted first before the new one is added.
>>
>> Are you using an "add" method or setting the whole list using a
>> "get_set_on_save" method?
>>
> I am using the syntax that you used in the docs :
>
> $p = Product->new(id => 123)->load;
>
> $p->colors({ name => 'pink' },
> { name => 'orange' });
>
> # Delete old rows in the mapping table and create new ones
> $p->save;
That should delete all existing map records for the product in question
before creating new ones. Can you post some self-contained example code
that demonstrates a situation in which it doesn't?
-John
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object