X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship%2FBase.pm;h=5338cb67120213a12a310544536c19a7059c7d1a;hb=6864429af43e4ab081343157784d5e00dca7200d;hp=6bad2667ea60af1da9e15284ccfdfa5bd33010cd;hpb=dad42de6afbfc6faa63e9aa726030f22c1aa582a;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Relationship/Base.pm b/lib/DBIx/Class/Relationship/Base.pm index 6bad266..5338cb6 100644 --- a/lib/DBIx/Class/Relationship/Base.pm +++ b/lib/DBIx/Class/Relationship/Base.pm @@ -428,7 +428,7 @@ $rel_name. $rs = $cd->related_resultset('tracks'); # has_many relationship $rs = $cd->tracks; -This is the recommended way to transverse through relationships, based +This is the recommended way to traverse through relationships, based on the L name given in the relationship definition. This will return either a L or a @@ -587,8 +587,7 @@ current result or where conditions. =cut sub count_related { - my $self = shift; - return $self->search_related(@_)->count; + shift->search_related(@_)->count; } =head2 new_related @@ -685,9 +684,8 @@ See L for details. =cut sub find_related { - my $self = shift; - my $rel = shift; - return $self->search_related($rel)->find(@_); + #my ($self, $rel, @args) = @_; + return shift->search_related(shift)->find(@_); } =head2 find_or_new_related @@ -748,9 +746,8 @@ L for details. =cut sub update_or_create_related { - my $self = shift; - my $rel = shift; - return $self->related_resultset($rel)->update_or_create(@_); + #my ($self, $rel, @args) = @_; + shift->related_resultset(shift)->update_or_create(@_); } =head2 set_from_related @@ -845,7 +842,7 @@ sub update_from_related { =item Arguments: $rel_name, $cond?, L<\%attrs?|DBIx::Class::ResultSet/ATTRIBUTES> -=item Return Value: $storage_rv +=item Return Value: $underlying_storage_rv =back