store deflated value when handed to store_deflated_column
Matt S Trout [Sun, 18 Jun 2006 23:07:59 +0000 (23:07 +0000)]
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;