delete $self->{_dirty_columns};
return unless $self->in_storage; # Don't reload if we aren't real!
- if( my $current_storage = $self->get_current_storage) {
+ if( my $current_storage = $self->get_from_storage) {
# Set $self to the current.
%$self = %$current_storage;
$class->mk_group_accessors('column' => $acc);
}
-=head2 get_current_storage
+=head2 get_from_storage
Returns a new Row which is whatever the Storage has for the currently created
Row object. You ca use this to see if the storage has become inconsistent with
=cut
-sub get_current_storage {
+sub get_from_storage {
my $self = shift @_;
my @primary_columns = map { $self->$_ } $self->primary_columns;
return $self->result_source->schema->txn_do(sub {