Ovid wrote:
> --- On Fri, 11/12/09, Rob Kinyon <[email protected]> wrote:
> 
>> From: Rob Kinyon <[email protected]>
> 
>> 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.

_______________________________________________
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/[email protected]

Reply via email to