X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FCDBICompat%2FLiveObjectIndex.pm;h=fb8a77efd29370797c4eda6e4d4c6404cae7f3b3;hb=2352a24183c1ae0cc4c97a6f8cec4c70657fd559;hp=8ebdf12a1947c31c826abefef0272f4386233016;hpb=1f6715abcab925d1a45acfb51e7e9fffbad00c84;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/CDBICompat/LiveObjectIndex.pm b/lib/DBIx/Class/CDBICompat/LiveObjectIndex.pm index 8ebdf12..fb8a77e 100644 --- a/lib/DBIx/Class/CDBICompat/LiveObjectIndex.pm +++ b/lib/DBIx/Class/CDBICompat/LiveObjectIndex.pm @@ -1,4 +1,5 @@ -package DBIx::Class::CDBICompat::LiveObjectIndex; +package # hide from PAUSE + DBIx::Class::CDBICompat::LiveObjectIndex; use strict; use warnings; @@ -33,7 +34,7 @@ sub clear_object_index { sub insert { my ($self, @rest) = @_; - $self->NEXT::ACTUAL::insert(@rest); + $self->next::method(@rest); # Because the insert will die() if it can't insert into the db (or should) # we can be sure the object *was* inserted if we got this far. In which # case, given primary keys are unique and ID only returns a @@ -51,9 +52,9 @@ sub insert { return $self; } -sub _row_to_object { +sub inflate_result { my ($class, @rest) = @_; - my $new = $class->NEXT::ACTUAL::_row_to_object(@rest); + my $new = $class->next::method(@rest); if (my $key = $new->ID) { #warn "Key $key"; my $live = $class->live_object_index; @@ -70,11 +71,11 @@ sub discard_changes { my ($self) = @_; if (my $key = $self->ID) { $self->remove_from_object_index; - my $ret = $self->NEXT::ACTUAL::discard_changes; + my $ret = $self->next::method; $self->live_object_index->{$key} = $self if $self->in_storage; return $ret; } else { - return $self->NEXT::ACTUAL::discard_changes; + return $self->next::method; } }