Commit 86fa70d6 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 00bf8c95
......@@ -426,8 +426,9 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
break;
case 'boolean':
case 'integer':
if($tmp[$name] !== self::$null)
if ($tmp[$name] !== self::$null && ! ($tmp[$name] instanceof Doctrine_Record)) {
settype($tmp[$name], $type);
}
default:
$this->_data[$name] = $tmp[$name];
}
......
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