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

Brandi b.cantarel at gmail.com
Wed Oct 29 08:58:33 GMT 2008


I wish that that solution would have worked, but sadly, it did not
help.  Any other ideas?



On Wed, Oct 29, 2008 at 9:02 AM, Zbigniew Lukasiak <zzbbyy at gmail.com> wrote:
> 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/
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>



More information about the DBIx-Class mailing list