X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship.pm;h=14741b0ee30ab594d72ccd4d9ea7f5037d978df2;hb=656796f2088da66cc80f4eb127c39c923ef3c1dd;hp=109edf20703d1c776d8ec0f14614005ad7f26796;hpb=8b445e337a0dbacf4ccb827211002f8d691ad671;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Relationship.pm b/lib/DBIx/Class/Relationship.pm index 109edf2..14741b0 100644 --- a/lib/DBIx/Class/Relationship.pm +++ b/lib/DBIx/Class/Relationship.pm @@ -104,18 +104,18 @@ sub _cond_value { sub search_related { my $self = shift; - return $self->_from_sql_related('retrieve', @_); + return $self->_literal_related('search', @_); } sub count_related { my $self = shift; - return $self->_from_sql_related('count', @_); + return $self->_literal_related('count', @_); } -sub _from_sql_related { +sub _literal_related { my $self = shift; my $op = shift; - my $meth = "${op}_from_sql"; + my $meth = "${op}_literal"; my $rel = shift; my $attrs = { }; if (@_ > 1 && ref $_[$#_] eq 'HASH') {