i noticed that for my 'many to many' mappings, manager args used in 'find'
methods weren't being propogated.

some digging found the generated method spending the time merging all the
args together, then didn't use them.  similar code ('one to many' find?)
further up does indeed use %args in this spot..

here is a patch to Rose::DB::Object::MakeMethods::Generic version 0.764:

---
/usr/local/lib/perl5/site_perl/5.8.8/Rose/DB/Object/MakeMethods/Generic.pm
 2007-05-04 09:48:08.000000000 -0400
+++ Generic.pm  2007-06-10 01:17:12.000000000 -0400
@@ -4299,7 +4299,7 @@
           $objs =
             $map_manager->$map_method(query => [EMAIL PROTECTED],
                                       require_objects => $require_objects,
-                                      %$mgr_args, db => $self->db);
+                                      %args, db => $self->db);
         }
         else
         {
@@ -4307,7 +4307,7 @@
             $map_manager->$map_method(query => [EMAIL PROTECTED],
                                       require_objects => $require_objects,
                                       db => $self->db, share_db => 0,
-                                      %$mgr_args);
+                                      %args);
         }
       };


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