[EMAIL PROTECTED] wrote:
> While we're on the subject, lets assume that MySchema is 
> 'myapp::SchemaLoader::foo.
>
> How do I make sure that my SchemaLoader can see the config when it 
> tries to execute
> __PACKAGE__->connection?
>
> It isn't seeing the Model::MyModel connect_info, admonishing me for 
> failing to provide
> connection info.
Are you using Schema::Loader or the vanilla DBIx::Class::Schema? My 
example was strictly for a non-loader setup:

package MyApp::Model;

use base qw( Catalyst::Model::DBIC::Schema );

1;

package MySchema;

use base qw( DBIx::Class::Schema );

__PACKAGE__->load_classes;

1;

--Brian



_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to