1
0
mirror of synced 2025-01-18 22:41:43 +03:00

* fixing boolean values, casting them to bool when reading from the database

This commit is contained in:
pookey 2007-06-12 20:31:20 +00:00
parent bbc35e3ff4
commit f69ba1bf5c

View File

@ -150,6 +150,9 @@ class Doctrine_Record_Filter extends Doctrine_Object
case 'enum':
$data[$name] = $this->_record->getTable()->enumValue($name, $tmp[$name]);
break;
case 'boolean':
$data[$name] = (boolean)$tmp[$name];
break;
default:
$data[$name] = $tmp[$name];
}