X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship%2FBelongsTo.pm;h=a538f44662827302419babbf144be9f8e5511e0c;hb=229401a04e99e27e256fdcd24b3c34087c9c2bc1;hp=4b1577c4f5eb257f77b12f6e0f50ffc547c48f39;hpb=d0cefd99a98e7fb2304fe6a5182d321fe7c551fc;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Relationship/BelongsTo.pm b/lib/DBIx/Class/Relationship/BelongsTo.pm index 4b1577c..a538f44 100644 --- a/lib/DBIx/Class/Relationship/BelongsTo.pm +++ b/lib/DBIx/Class/Relationship/BelongsTo.pm @@ -60,6 +60,8 @@ sub belongs_to { else { if (ref $cond eq 'HASH') { # ARRAY is also valid my $cond_rel; + # FIXME This loop is ridiculously incomplete and dangerous + # staving off changes until implmentation of the swindon consensus for (keys %$cond) { if (m/\./) { # Explicit join condition $cond_rel = $cond; @@ -99,14 +101,4 @@ sub belongs_to { return 1; } -# Attempt to remove the POD so it (maybe) falls off the indexer - -#=head1 AUTHORS -# -#Alexander Hartmaier -# -#Matt S. Trout -# -#=cut - 1;