On 7/21/06, Mark Blythe <[EMAIL PROTECTED]> wrote: > You'll probably have to move your base class into a different section > of the class namespace to avoid having it auto-loaded. Something like > My::SchemaBase rather than My::Schema::BaseClass. Until there's an > exclusion mechanism for load_classes().
Simple and elegant. I like it! :-) Devs: be on the lookout for a patch which adds load_classes_except()... Drew > On 7/21/06, Drew Taylor <[EMAIL PROTECTED]> wrote: > > On 7/21/06, Christopher H. Laco <[EMAIL PROTECTED]> wrote: > > > > > > I'd suspect that it barfed because when the schema tried loading the > > > result source classes, it tried loading My::Schema::BaseClass as it's > > > own source, which it isn't. > > > > I just setup a test, and excluding the BaseClass did the trick! Now I > > just need an easy way to say "load all BUT this class" without having > > to specify all the classes by hand. :-) > > > > Drew > > -- > > ---------------------------------------------------------------- > > Drew Taylor * Web development & consulting > > Email: [EMAIL PROTECTED] * Site implementation & hosting > > Web : www.drewtaylor.com * perl/mod_perl/DBI/mysql/postgres > > ---------------------------------------------------------------- > > > > _______________________________________________ > > List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class > > Wiki: http://dbix-class.shadowcatsystems.co.uk/ > > IRC: irc.perl.org#dbix-class > > SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ > > Searchable Archive: > > http://www.mail-archive.com/[email protected]/ > > > > _______________________________________________ > List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class > Wiki: http://dbix-class.shadowcatsystems.co.uk/ > IRC: irc.perl.org#dbix-class > SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ > Searchable Archive: http://www.mail-archive.com/[email protected]/ > -- ---------------------------------------------------------------- Drew Taylor * Web development & consulting Email: [EMAIL PROTECTED] * Site implementation & hosting Web : www.drewtaylor.com * perl/mod_perl/DBI/mysql/postgres ---------------------------------------------------------------- _______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
