On May 22, 2006, at 5:34 PM, John Siracusa wrote:
Manager methods take a db parameter, If one is not passed, then one will be created by calling the init_db() method of the object class. So, you should be able to pass in a pre-injected-with-your-desired-dbh Rose::DB-derived object as the db parameter to your Manager call, or you could override init_db() in your object class to return such a thing.
I didn't have a Rose::DB derived db object, but i tried this... and it worked in an unexpected way-> my $dbh= standard DBI handle $loaded= Object::Manager->get_assets( query=>[params], dbh=> $dbh ); it worked. i dont think it should have, but it did. - - - - - - - - - - - - - - - - - - - | RoadSound.com / Indie-Rock.net | Collaborative Online Management And Syndication Tools | - - - - - - - - - - - - - - - - - - - - ------------------------------------------------------- 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