1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Added back proper type-casting of integer and boolean types that was added in r419 and removed in r422. Fixes #321.

This commit is contained in:
subzero2000 2007-05-07 22:39:25 +00:00
parent f0236dc9a1
commit b68a791bf7

View File

@ -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];
} }