Fixed #662
This commit is contained in:
parent
7202977968
commit
2717408be8
@ -1255,7 +1255,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
|
|||||||
foreach ($array as $key => $value) {
|
foreach ($array as $key => $value) {
|
||||||
if ($this->getTable()->hasRelation($key) && $deep) {
|
if ($this->getTable()->hasRelation($key) && $deep) {
|
||||||
$this->$key->fromArray($value, $deep);
|
$this->$key->fromArray($value, $deep);
|
||||||
} else if($this->getTable()->hasColumn($key)) {
|
} else if ($this->getTable()->hasField($key)) {
|
||||||
$this->set($key, $value);
|
$this->set($key, $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user