1
0
mirror of synced 2025-01-19 06:51:40 +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': case 'enum':
$data[$name] = $this->_record->getTable()->enumValue($name, $tmp[$name]); $data[$name] = $this->_record->getTable()->enumValue($name, $tmp[$name]);
break; break;
case 'boolean':
$data[$name] = (boolean)$tmp[$name];
break;
default: default:
$data[$name] = $tmp[$name]; $data[$name] = $tmp[$name];
} }