[Catalyst] Using model layer with DBIC::Schema

Dr. Jennifer Nussbaum bg271828 at yahoo.com
Tue Jun 27 21:51:03 CEST 2006


Hi,

im just moving some work to DBIx::Class (which im really liking!), and i have a
question about setting up my Schemas.

The docs for Catalyst::Plugin::DBIC::Schema talk a lot about setting up your
DBIC classes in MyApp::Schema so you can use it on it's own, and then
creating MyApp::Model::FilmDB, which calls MyApp::Schema::Film as it's
Schema Class. So you then have Model::Film which is in Catalyst but doesnt
really exists, it's a creation of the Schema.

i want to know the best way to set up a REAL Model::Film with DBIC. That is,
i have a Catalyst Controller that needs a model to do things relating to CATALYST. i want my controller to pass $c to a model that can do a bunch of 
Catalyst related things, and IT calls my DBIC class. In other words i want a 
model layer in Catalyst that calls my fixed, not-Catalyst model in MyApp::Schema.

Is there a recomended way of doing this with the Catalyst plugin or a recomended
way of doing it from scratch?

Thank you!

Jen

 		
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060627/d012c84c/attachment.htm 


More information about the Catalyst mailing list