From: David Kamholz Date: Sun, 18 Jun 2006 22:23:20 +0000 (+0000) Subject: hopefully actually fix inflate this time X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=25594f038dc8bb8d8c3f110ccfbebe30774043be;p=dbsrgits%2FDBIx-Class-Historic.git hopefully actually fix inflate this time --- diff --git a/lib/DBIx/Class/InflateColumn.pm b/lib/DBIx/Class/InflateColumn.pm index 61efb00..165b632 100644 --- a/lib/DBIx/Class/InflateColumn.pm +++ b/lib/DBIx/Class/InflateColumn.pm @@ -126,8 +126,8 @@ analogous to L. sub set_inflated_column { my ($self, $col, $obj) = @_; - $self->set_column($col, $self->_deflated_column($col, $obj)); - return $self->store_inflated_column($col, $obj); + delete $self->{_inflated_column}{$col}; + return $self->set_column($col, $self->_deflated_column($col, $obj)); } =head2 store_inflated_column @@ -141,10 +141,7 @@ as dirty. This is directly analogous to L. sub store_inflated_column { my ($self, $col, $obj) = @_; - unless (blessed($obj)) { - delete $self->{_inflated_column}{$col}; - return undef; - } + delete $self->{_column_data}{$col}; return $self->{_inflated_column}{$col} = $obj; }