[Dbix-class] BUG? Unable to resolve relationship
Peter Rabbitson
rabbit+dbic at rabbit.us
Sat Dec 12 10:23:35 GMT 2009
Ovid wrote:
> --- On Fri, 11/12/09, Rob Kinyon <rob.kinyon at gmail.com> wrote:
>
>> From: Rob Kinyon <rob.kinyon at gmail.com>
>
>> This looks to be the mythical "might_belong_to"
>> relationship type that
>> hasn't been defined yet. might_have is the LEFT JOIN
>> version of
>> has_many. What you want is belongs_to( ..., { join_type
>> => 'LEFT' } );
>
>>From DBIx::Class::RelationShip:
>
> might_have
>
> Arguments: $accessor_name, $related_class, $their_fk_column|\%cond|\@cond?, \%attrs?
> Creates an optional one-to-one relationship with a class.
>
> That "one-to-one" is wrong? Is this a doc error?
It isn't, but it is grossly misleading. There are some ideas how to make it clearer.
More information about the DBIx-Class
mailing list