Commit 2717408b authored by romanb's avatar romanb

Fixed #662

parent 72029779
......@@ -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);
}
}
......
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