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:
parent
f0236dc9a1
commit
b68a791bf7
@ -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];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user