From: mikew Date: Fri, 11 Oct 2013 15:35:39 +0000 (-0400) Subject: - Clear dumped_objects in case multiple calls to dump with same fixture object X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f2a1c1ba15f6f8e4ffc744f7edbf09d8193e326e;p=dbsrgits%2FDBIx-Class-Fixtures.git - Clear dumped_objects in case multiple calls to dump with same fixture object --- diff --git a/lib/DBIx/Class/Fixtures.pm b/lib/DBIx/Class/Fixtures.pm index 2290490..d23f795 100644 --- a/lib/DBIx/Class/Fixtures.pm +++ b/lib/DBIx/Class/Fixtures.pm @@ -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}) {