[Dbix-class] DBIC::Loader + M::Pluggable
Matt S Trout
dbix-class at trout.me.uk
Tue Jan 24 19:15:39 CET 2006
On Wed, Jan 25, 2006 at 02:12:44AM +0900, Daisuke Murase wrote:
> > I don't quite understand what it is you're trying to do with
> > Module::Pluggable::Fast above - could you explain with more detail
> > what it would accomplish?
>
> Yes, I just want to load automatically my table classes that define
> relasionships, inflations, and functions, with Loader.
That's not what Loader's for - it's for loading stuff off the database.
If all your modules are under Foo::Bar::* then
package Foo::Bar;
use base qw/DBIx::Class::Schema/;
__PACKAGE__->load_classes();
will use Module::Find to locate all those modules, load and register them.
--
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