[Catalyst] More complex Class::DBI::Sweet usage?
Chisel Wright
chisel at herlpacker.co.uk
Fri Jul 1 12:54:05 CEST 2005
On Fri, Jul 01, 2005 at 11:22:16AM +0100, Toby Corkindale wrote:
> Ah, but this doesn't quite work for me - it seems like the CDBI functions
> don't yet exist at the time the set_sql() routines are called, ie:
As I've pointed out offlist, I'm using set_sql in an M:: auto-generated
module, without any trouble.
> But the next line shows us failing when the Stores.pm package is loaded:
> [Fri Jul 01 11:16:41 2005] [error] [client 127.0.0.1] Couldn't load
> "DieselCatalyst::M::CDBI::Stores", "Can't locate object method "set_sql" via
> package "DieselCatalyst::Model::CDBI::Stores" at
> /home/tobyc/svn/DieselCatalyst/lib/DieselCatalyst/M/CDBI/Stores.pm line 11.
I'm still new to CDBI as a whole, so haven't seen this before
> Do I need to do something akin to Maypole's setup()-then-require trick?
> (Presumably in a much more elegant manner though :)
I hope not ... :)
Chiz
--
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/
More information about the Catalyst
mailing list