[Dbix-class] Catalyst::Model::DBIC::Schema

Daisuke Murase typester at cpan.org
Thu Feb 9 05:08:46 CET 2006


I tried it, but it didn't work.

In my controller,

   $c->model('Schema')->resultset('Table')->search->all;

then rises following error:

   Can't call method "select" on an undefined value at
   /usr/local/share/perl/5.8.4/DBIx/Class/ResultSet.pm line 284.


I think Model::Schema has wrong connection handling.

   $self->schema->connect(@{$self->{connect_info}});

IMO, it should be:

   $self->schema( $self->schema->connect(@{$self->{connect_info}}) );

or so?


--
Daisuke Murase <typester at cpan.org>


Brandon Black <blblack at gmail.com> wrote:
> Catalyst::Model::DBIC::Schema exists now, although I haven't CPANed it
> yet, awaiting more feedback, it may still need some tweaks to its
> design.
>
> There's a snapshot available at
> http://www.dtmf.com/Catalyst-Model-DBIC-Schema-0.01.tar.gz
>
> Or subversion access directly at:
>
> http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Model-DBIC-Schema
>
> Any testing/feedback welcome,
>
> -- Brandon
>
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060209/0846f022/attachment.pgp


More information about the Dbix-class mailing list