store deflated value when handed to store_deflated_column
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / InflateColumn.pm
index 382b332..d5791cb 100644 (file)
@@ -148,7 +148,8 @@ sub store_inflated_column {
   my ($self, $col, $obj) = @_;
   unless (blessed $obj) {
       delete $self->{_inflated_column}{$col};
-      return undef;
+      $self->store_column($col => $obj);
+      return $obj;
   }
   delete $self->{_column_data}{$col};
   return $self->{_inflated_column}{$col} = $obj;