diff --git a/src/Factory.php b/src/Factory.php index cace74b..7701551 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -502,7 +502,7 @@ public function isPendingOrSaved($object) public function deleteSaved() { $exceptions = array(); - foreach ($this->saved as $object) { + foreach (array_reverse($this->saved) as $object) { try { if (!$this->delete($object)) { throw new DeleteFailedException(get_class($object));