Skip to content

Commit 287270b

Browse files
thirschthePanz
authored andcommitted
Flushing more than once causes a warning. Resetting $_collections to the initial state avoids it.
1 parent f1ac6a0 commit 287270b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Doctrine/Hydrator/RecordDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function flush()
118118
$coll->takeSnapshot();
119119
}
120120
$this->_initializedRelations = null;
121-
$this->_collections = null;
121+
$this->_collections = array();
122122
$this->_tables = null;
123123
}
124124
}

0 commit comments

Comments
 (0)