diff --git a/Doctrine/Record.php b/Doctrine/Record.php index de50e812e..4e6ed0b82 100644 --- a/Doctrine/Record.php +++ b/Doctrine/Record.php @@ -1280,6 +1280,18 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite final public function hasColumn($name, $type, $length = 20, $options = "") { $this->table->setColumn($name, $type, $length, $options); } + /** + * merge + * + * @param array $values + */ + public function merge(array $values) { + foreach($this->table->getColumnNames() as $value) { + try { + $this->data[$value] = $values[$value]; + } catch(Exception $e) { } + } + } /** * __call * @param string $m