[Catalyst] Catalyst + Authentication::CDBI
Matt S Trout
dbix-class at trout.me.uk
Tue Feb 28 23:01:47 CET 2006
On Tue, Feb 28, 2006 at 10:06:12PM +0100, Ycrux wrote:
> Hi Matt!
> I tried Catalyst::Plugin::Authentication::Store::DBIC, but now
> I got a new error : Couldn't load "GDLWeb2::Model::CustomerRole"
If you're specifying all your table classes, consider using either
Catalyst::Model::DBIC::Plain or the newer Catalyst::Model::DBIC::Schema
(which will want a DBIx::Class::Schema class external to the MyApp::Model::
tree).
What you definitely want though is *one* class that inherits from someting
under Catalyst::Model::* only. What you've done there is try and make every
table class a Loader-based model that'll try and load a copy of your entire
database - and doesn't have the appropriate table-class methods available,
which is probably why it couldn't load it.
Your DBIC table classes should *never* inherit from a Catalyst::Model::*
class though; after all, an object of one of those classes represents a row
in the table, not a Catalyst model component :)
--
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 Catalyst
mailing list