From b68a791bf7513c49222fa2d245c27c26079a53d1 Mon Sep 17 00:00:00 2001 From: subzero2000 Date: Mon, 7 May 2007 22:39:25 +0000 Subject: [PATCH] Added back proper type-casting of integer and boolean types that was added in r419 and removed in r422. Fixes #321. --- lib/Doctrine/Record.php | 4 ++++ 1 file changed, 4 insertions(+) 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]; }