From fe1bc520a83d9f62d01ea7674ed2095e429132cf Mon Sep 17 00:00:00 2001 From: zYne Date: Mon, 30 Jul 2007 22:30:41 +0000 Subject: [PATCH] --- lib/Doctrine/Collection.php | 4 ++++ 1 file changed, 4 insertions(+) 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);