Commit 635f1a9c authored by zYne's avatar zYne

fixes #420

parent 46154c56
...@@ -838,13 +838,13 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count ...@@ -838,13 +838,13 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
$lower = $this->_table->getColumnName($lower); $lower = $this->_table->getColumnName($lower);
if (isset($this->_data[$lower])) {
if ($value instanceof Doctrine_Record) {
$type = $this->_table->getTypeOf($name); $type = $this->_table->getTypeOf($name);
if (isset($this->_data[$lower])) {
if ($value instanceof Doctrine_Record && $type != 'object') {
$id = $value->getIncremented(); $id = $value->getIncremented();
if ($id !== null) { if ($id !== null && $type !== 'object') {
$value = $id; $value = $id;
} }
} }
......
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