- Clear dumped_objects in case multiple calls to dump with same fixture object
mikew [Fri, 11 Oct 2013 15:35:39 +0000 (11:35 -0400)]
lib/DBIx/Class/Fixtures.pm

index 2290490..d23f795 100644 (file)
@@ -633,6 +633,9 @@ sub dump {
    return DBIx::Class::Exception->throw('predump_hook param should be a coderef');
   }
 
+  # Clear dumped_objects in case of subsequent calls to dump with same fixture object
+  $self->{dumped_objects} = {};
+
   my $schema = $params->{schema};
   my $config;
   if ($params->{config}) {