From 467897dadbedda7045c41546f9c75fc5a2090a3c Mon Sep 17 00:00:00 2001 From: romanb Date: Wed, 12 Dec 2007 09:54:39 +0000 Subject: [PATCH] Fixed #626. --- lib/Doctrine/Data/Import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Data/Import.php b/lib/Doctrine/Data/Import.php index 096536eec..5afbaa4a8 100644 --- a/lib/Doctrine/Data/Import.php +++ b/lib/Doctrine/Data/Import.php @@ -128,7 +128,7 @@ class Doctrine_Data_Import extends Doctrine_Data $obj = $this->_importedObjects[$rowKey]; foreach ($row as $key => $value) { - if ($obj->getTable()->hasColumn($key)) { + if ($obj->getTable()->hasField($key)) { $obj->set($key, $value); } else if (method_exists($obj, 'set' . Doctrine::classify($key))) { $func = 'set' . Doctrine::classify($key);