1
0
mirror of synced 2024-12-13 14:56:01 +03:00

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

This commit is contained in:
Jonathan.Wage 2007-11-15 21:01:19 +00:00
parent f11e95497c
commit e8087eb53f

View File

@ -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;
}