[Catalyst] Can't infer join condition
Brandon Black
blblack at gmail.com
Wed Feb 15 16:30:19 CET 2006
On 2/15/06, hkclark at gmail.com <hkclark at gmail.com> wrote:
> Hi Chisel (& everyone else),
>
> Was a solution ever found to this problem. I'm trying to run Parley
> 0.08 and I get the following output when I run
> script/parley_server.pl:
>
> Too late to run INIT block at
> /usr/lib/perl5/site_perl/5.8.5/Class/C3.pm line 52, <DATA> line 1.
> Couldn't load "Parley::Model::ParleyDB::Person",
> "DBIx::Class::Relationship::BelongsTo::belongs_to(): Can't infer join
> condition for authentication on Parley::Model::ParleyDB::Person;
> unable to load Parley::Model::ParleyDB::Authentication at
> /home/kclark/dev/Parley-0.08/script/../lib/Parley/Model/ParleyDB/Person.pm
> line 10
> Compilation failed in require at
> /usr/lib/perl5/site_perl/5.8.5/Module/Pluggable/Fast.pm line 82,
> <DATA> line 1.
> " at /usr/lib/perl5/site_perl/5.8.5/Module/Pluggable/Fast.pm line 84,
> <DATA> line 1.
> Compilation failed in require at script/parley_server.pl line 49, <DATA> line 1.
>
> I found some discussion about the "Too late to run INIT block" issue
> and it sounds like that's just something to ignore for now. But the
> "Can't infer join condition" appears to be a show stopper.
>
What version of Loader is that using (and what version of
DBIx::Class)? I wouldn't expect such an error out of Loader 0.14+,
but if it is, I guess we need some more fixes. One known issue is
that Loader doesn't handle multi-column FKs very elegantly or
correctly (or multiple rels between the same pair of tables), but it
has never done so. FWIW Schema::Loader does the multi-col FKs
correctly.
-- Brandon
More information about the Catalyst
mailing list