Fixed issue with create() and the array of passed data
This commit is contained in:
parent
f11e95497c
commit
e8087eb53f
@ -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->fromArray($array);
|
||||
|
||||
return $record;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user