patch CDBI live object index emulation to use ->ID method, add tests for ->ID
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / CDBICompat / MightHave.pm
CommitLineData
503536d5 1package DBIx::Class::CDBICompat::MightHave;
2
3use strict;
4use warnings;
5
6sub might_have {
7 my ($class, $rel, $f_class, @columns) = @_;
8 if (ref $columns[0] || !defined $columns[0]) {
9 return $class->NEXT::might_have($rel, $f_class, @columns);
10 } else {
11 return $class->NEXT::might_have($rel, $f_class, undef,
12 { proxy => \@columns });
13 }
14}
15
161;