[Catalyst] More complex Class::DBI::Sweet usage?
Toby Corkindale
tjc at wintrmute.net
Fri Jul 1 12:38:35 CEST 2005
On Fri, Jul 01, 2005 at 12:07:32PM +0200, Danijel Milicevic wrote:
> Am Freitag, den 01.07.2005, 10:36 +0100 schrieb Toby Corkindale:
> > *delurk*
> > In Catalyst, where is the preferred place to setup custom queries for
> > autogenerated (via C::M::CDBI) classes?
> > In a package named exactly the same, so you can do __PACKAGE__->set_sql(), or
> > in a different package (ie. via C::M::CDBI::Foo->set_sql()) which must be
> > run after the setup stage of C::M::CDBI)?
>
> In order for Catalyst to pick up your models you should place them in
> the MyApp::M:: namespace. You can do that manually for non-cdbi models
> or just use the helper script and a existing database:
Ah, figured it out.. I was putting things into the
MyApp::Model:: namespace, not MyApp::M::...
thanks
Toby
--
Turning and turning in the widening gyre/The falcon cannot hear the falconer;
Things fall apart, the centre cannot hold/Mere anarchy is loosed upon the world
(gpg --keyserver www.co.uk.pgp.net --recv-key 897E5FF3)
More information about the Catalyst
mailing list