diff --git a/lib/Doctrine/Collection.php b/lib/Doctrine/Collection.php index 661c24dbb..a9ab60c13 100644 --- a/lib/Doctrine/Collection.php +++ b/lib/Doctrine/Collection.php @@ -580,6 +580,10 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator return $this; } + public function toArray() + { + return $this->data; + } public function getDeleteDiff() { return array_diff($this->_snapshot, $this->data);