Permalink
Browse files

It makes sense to be consistent and to cache the

object as soon as we got the data from the database.
  • Loading branch information...
1 parent e08db62 commit 990a78f2672180f155861a553c7e235a6e82e71e @yannk yannk committed Jul 31, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Data/ObjectDriver/BaseObject.pm
View
1 lib/Data/ObjectDriver/BaseObject.pm
@@ -537,6 +537,7 @@ sub refresh {
my $fields = $obj->fetch_data;
$obj->set_values_internal($fields);
$obj->call_trigger('post_load');
+ $obj->driver->cache_object($obj);
return 1;
}

0 comments on commit 990a78f

Please sign in to comment.