Commit b68a791b authored by subzero2000's avatar subzero2000

Added back proper type-casting of integer and boolean types that was added in...

Added back proper type-casting of integer and boolean types that was added in r419 and removed in r422. Fixes #321.
parent f0236dc9
...@@ -424,6 +424,10 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite ...@@ -424,6 +424,10 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
case 'enum': case 'enum':
$this->_data[$name] = $this->_table->enumValue($name, $tmp[$name]); $this->_data[$name] = $this->_table->enumValue($name, $tmp[$name]);
break; break;
case 'boolean':
case 'integer':
if($tmp[$name] !== self::$null)
settype($tmp[$name], $type);
default: default:
$this->_data[$name] = $tmp[$name]; $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