[Catalyst] DBIC::Schema issue - out of ideas [ more info ]

Dermot paikkos at googlemail.com
Wed Feb 18 09:08:46 GMT 2009


2009/2/18  <kakimoto at tpg.com.au>:
> Hello Dermot,
>
>  sorry, you're right.
>  Yes, I could not find myAppDB::Listing myself.
>
> I ran the following command for generating the static schema manually.
>
> " myApp_create.pl model myAppDB DBIC::Schema myApp::Schema create=static
> dbi:Pg:dbname=myApp  myAdminUser mypassword"
>
>
> Where in catalyst do we get Catalyst to recognise all the static files
> found under "Schema" ?

In "lib/myApp/Model/DB.pm"


It should look something like:

__PACKAGE__->config(
    schema_class => 'myApp::myAppDB',
...


Your command says "Create a schema under the directory 'myAppDB', so
they should be under

lib/myApp/myAppDB/

They probably are there as *.new (as Alejandro says)

This whole issue can be quickly resolved if you can search/grep
through the files in ~/Controller/* and/or ~/myAppDB/*  to find out
how is trying to use "Listing.pm". Does you this table exist in you
DB?

Good luck, you'll get there eventually :)
Dp.



More information about the Catalyst mailing list