On Tue, Aug 7, 2012 at 10:29 PM, Rajeev Prasad <rp.ne...@yahoo.com> wrote:
> Hello, > > am I missing anything? when I dump schema of my database using schema > loader's make_schema_at. Some .pm file names under Result corrosponding to > folders have names chnaged! they do not match to table names!! > > e.g. table name costlycookies shows up as Costlycooky.pm !!! another table > cheapcookis show up as Cheapcooky.pm another table named els is showing up > a El.pm !!! > > when i cat these files the table names and other details are all good. But > due to this 'wrong' .pm file naming I am getting this error in my code: > > DBIx::Class::Schema::resultset(): Can't find source for Costlycookies at > /my/path/cgi-bin/myscript.pl line 53 > > line 53 in my code:... > > $coki_rs = $schema->resultset('Costlycookies')->search(.... > > > > why is this happening? before this fresh dumping operation, I changed the > indexed key from general indexed key to primary index key on almost all > tables, but the old table's *.pm file names still look good. > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > Take a look at the documentation for DBIx::Class::Schema::Loader::Base. It explains how *make_schema_at* renames tables into classes. http://search.cpan.org/~rkitover/DBIx-Class-Schema-Loader-0.07025/lib/DBIx/Class/Schema/Loader/Base.pm#naming -- Robert Wohlfarth