[Dbix-class] joins -- Can't Handle this Yet?

Zbigniew Lukasiak zzbbyy at gmail.com
Wed Oct 29 08:02:49 GMT 2008


Hi Brandi!

On Wed, Oct 29, 2008 at 7:29 AM, Brandi Cantarel <b.cantarel at gmail.com> wrote:
> Thanks Cory for your response, but I am quite familiar with all of the
> online help.
> After already consulting this and being able to write lots and lots of good
> statements.  I have noticed that when use the table object and join it to a
> table it "belongs_to"  I get the "Can't handle this error"
>
> But if I do the opposite join I do not get the error.  Why??
>
> __PACKAGE__->belongs_to('entry' => 'Cazy::Schema::Entry','entry_id');
> __PACKAGE__->add_relationship('entry' => 'Cazy::Schema::Entry','entry_id');

This does not look correct - 'belongs_to' is a shortcut for
'add_relationship' - so using both (for the same relation) seems
redundant.  I don't know if cleaning this will fix your problem - but
I would start with that.

--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/



More information about the DBIx-Class mailing list