From e8087eb53f728a0aff681a917df4a4744b30a9ea Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Thu, 15 Nov 2007 21:01:19 +0000 Subject: [PATCH] Fixed issue with create() and the array of passed data --- lib/Doctrine/Table.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 864ff0f6a..958196086 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -1008,9 +1008,8 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable */ public function create(array $array = array()) { - $this->_data = $array; - $record = new $this->_options['name']($this, true); - $this->_data = array(); + $record = new $this->_options['name']($this, true); + $record->fromArray($array); return $record; }