Praveen Ray wrote: > I tried doing as you suggested..it all works fine except when I do this: > > my $new_product = Product->new(product_id => 100); > > above line dies with : > died: Can't locate object method "product_id" via package "t::Product" > at /usr/lib/perl5/site_perl/5.8.6/Rose/DB/Object.pm line 1464 > > some other flag needs to be set to inform Rose::DB classes to use > 'get_product_id' instead of 'product_id' ?
Perhaps you can use the Rose::DB::Object::Helpers method: init_with_column_value_pairs() or also add a "get_set" method in addition to the "get set" ones. - jud ------------------------------------------------------------------------- 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