[Catalyst] How do I use use DBIx::Class::Schema and Catalyst
Alex Kavanagh
alex at tinwood.homelinux.org
Fri Feb 10 23:46:49 CET 2006
[snip]
>
> >
> > Usually I did
> >
> > $c->model('ABook::Person')->find(<id>);
> >
> > but now instead I have to do it like this:
> >
> > $c->model('ABook')->resultset('Person')->find(<id>);
> >
> > so a bit more typing, but if the Schema stuff is cool, I guess its
> > worth it :)
>
> Apparently, with the Catalyst::Model::DBIC::Schema you can still do
>
> $c->model('ABook::Person')->find...
>
> I've certainly used it on my recent hack of the DBIC Authentication
> plugin (see my list post).
Doh, I hadn't realised that Brandon had already answered this. And
indeed it does work ...
--
Alex.
More information about the Catalyst
mailing list