Hi, I have a many-to-many relationship. When I insert a new record in the mapping table, while also inserting a new record one of the end tables, I would like to set a certain value in the mapping table.
t1_t2_map ( id, t1_key, t2_key, another_column ) I am using the following syntax: my $t1 = My::T2->new(id => 1); $t1->t2s({ id => $t2_id }); $t1->save(); and it works fine but I am not sure how to add a value for "another_column" (or to get the id of the new mapping record). 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. TIA. ------------------------------------------------------------------------- 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 Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object