Commit 467897da authored by romanb's avatar romanb

Fixed #626.

parent 910ab719
...@@ -128,7 +128,7 @@ class Doctrine_Data_Import extends Doctrine_Data ...@@ -128,7 +128,7 @@ class Doctrine_Data_Import extends Doctrine_Data
$obj = $this->_importedObjects[$rowKey]; $obj = $this->_importedObjects[$rowKey];
foreach ($row as $key => $value) { foreach ($row as $key => $value) {
if ($obj->getTable()->hasColumn($key)) { if ($obj->getTable()->hasField($key)) {
$obj->set($key, $value); $obj->set($key, $value);
} else if (method_exists($obj, 'set' . Doctrine::classify($key))) { } else if (method_exists($obj, 'set' . Doctrine::classify($key))) {
$func = 'set' . Doctrine::classify($key); $func = 'set' . Doctrine::classify($key);
......
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