[Dbix-class] more schema questions
Matt S Trout
dbix-class at trout.me.uk
Sat Jan 7 22:18:10 CET 2006
On Sat, Jan 07, 2006 at 08:57:08PM +0000, Chisel Wright wrote:
> On Sat, Jan 07, 2006 at 09:08:50PM +0000, Matt S Trout wrote:
> > The Schema.pm docs probably need updating then. The latter form is preferred
> > because it means you don't end up hard-coding everything - if you're in
> > Catalyst then
> >
> > my $obj = $c->model('DBIC')->class('Birds')->find(234);
> >
> > is probably even better :)
>
> Oooh, I wasn't aware of this ... I think I'll go and have a play!
If you're hoping your Cat + DBIC app will eventually run multiple times
under mod_perl with different configs, this is the way to do it :)
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Dbix-class
mailing list