From 2717408be80abd14a70040b8b170b720d5a1c489 Mon Sep 17 00:00:00 2001 From: romanb Date: Tue, 11 Dec 2007 15:25:23 +0000 Subject: [PATCH] Fixed #662 --- lib/Doctrine/Record.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index 10766a643..066c1ebc7 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -1255,7 +1255,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count foreach ($array as $key => $value) { if ($this->getTable()->hasRelation($key) && $deep) { $this->$key->fromArray($value, $deep); - } else if($this->getTable()->hasColumn($key)) { + } else if ($this->getTable()->hasField($key)) { $this->set($key, $value); } }