1
0
mirror of synced 2025-03-05 20:36:15 +03:00

boolean type fix

This commit is contained in:
zYne 2007-04-20 18:18:44 +00:00
parent 40b7b14fb7
commit d81a843e73

View File

@ -1073,7 +1073,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
$a[$v] = gzcompress($this->_data[$v],5); $a[$v] = gzcompress($this->_data[$v],5);
break; break;
case 'boolean': case 'boolean':
$a[$v] = (int) $this->_data[$v]; $a[$v] = $this->getTable()->getConnection()->convertBooleans($this->_data[$v]);
break; break;
case 'enum': case 'enum':
$a[$v] = $this->_table->enumIndex($v,$this->_data[$v]); $a[$v] = $this->_table->enumIndex($v,$this->_data[$v]);