[Dbix-class] install problem
Matt S Trout
dbix-class at trout.me.uk
Mon Jan 16 16:50:39 CET 2006
On Mon, Jan 16, 2006 at 12:04:29PM +0000, Dave Howorth wrote:
> Anyway, I finally ran it and tracked down the problem.
> t/cdbi-t/01-columns.t says (among other things):
>
> ...
> package State;
> ...
> package City;
> ...
> City->has_a(State => 'State');
>
> That method call is resolved to DBIx/Class/CDBICompat/HasA.pm which
> says, in a context where $f_class eq 'State':
>
> eval "require $f_class";
>
> That causes a search though @INC and on my machine there *is* a package
> called State, so the eval resolves to that package, which has nothing to
> do with DBIx::Class or cities etc. Not surprisingly, the test fails when
> it tries to invoke methods on that class.
Gack! And this is why the DBIC tests only use packages under the DBICTest::
namespace. One more reason to split CDBICompat out before 0.05, I guess :)
--
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