diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index b1ae14a4a..c4a669719 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -424,6 +424,10 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite case 'enum': $this->_data[$name] = $this->_table->enumValue($name, $tmp[$name]); break; + case 'boolean': + case 'integer': + if($tmp[$name] !== self::$null) + settype($tmp[$name], $type); default: $this->_data[$name] = $tmp[$name]; }