[Dbix-class] bug in Catalyst::Model::DBIC::Schema / Catalyst::Helper::Model::DBIC::Schema

Brandon Black blblack at gmail.com
Wed Aug 23 14:28:37 CEST 2006


On 8/23/06, Jordan Adler <jordan.m.adler at gmail.com> wrote:
>
> When using create=dynamic (such as : script/jmadler_create.pl Model
> Database DBIC::Schema JMADLER::Model::Schema create=dynamic ), The
> Database module generated is:
>
> --
> package JMADLER::Model::Database;
>
> use strict;
> use base 'Catalyst::Model::DBIC::Schema';
>
> __PACKAGE__->config(
>     schema_class => 'JMADLER::Model::Schema',
>     connect_info => [
>         # snip
>     ],
> );
>
> --
> Which generates the following error upon boostrap:
>
> Can't locate object method "config" via package
> "JMADLER::Model::Database" at
> /storage/devel/JMADLER/script/../lib/JMADLER/Model/Database.pm line 6.
> Compilation failed in require at (eval 87) line 3.
> Compilation failed in require at script/jmadler_server.pl line 52.
>
> When using create=static, this problem does not occur.


A fair number of other people are using it successfully, and the error seems
a bit nonsensical, given that in either createfrom Catalyst::Model::DBIC::Schema, which  provides the config method from
one of its parents.  Can you investigate the issue further locally?

-- Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/dbix-class/attachments/20060823/0c16d12f/attachment.htm 


More information about the Dbix-class mailing list