Commit e8087eb5 authored by Jonathan.Wage's avatar Jonathan.Wage

Fixed issue with create() and the array of passed data

parent f11e9549
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment