New to Rose:: so please be gentle. I have run into the same problem with needing to be able to call the manager methods without knowing their names ahead of time. See recent post here:
http://sourceforge.net/mailarchive/forum.php?thread_id=11198586&forum_id=46239 And I can call the get_objects* methods directly but was wondering why the 'object_class' argument must be passed each time, if I have already set a 'sub object_class' with that data in the Manager class that I am using. So for instance if I have, package Product::Manager; use base qw( Manager ); sub object_class { 'Product' }; __PACKAGE__->make_manager_methods('products'); Then I would need to know 'products' to call get_products, but it seems the alternative working solution is to call, $manager_class->get_objects(@_, 'object_class' => 'Product'); But shouldn't get_objects itself be able to call (on itself) 'object_class' to retrieve that info? It could test ahead of time if it 'can' and fall back to the default of erroring on the missing arg, or if the arg is already provided skip the check/call of the object_class sub. Thanks for your assistance, I look forward to digging further in to Rose::, http://danconia.org ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object