1
0
mirror of synced 2024-12-13 22:56:04 +03:00

boolean parsing updated

This commit is contained in:
zYne 2007-02-15 11:38:26 +00:00
parent e80b339d7f
commit ee8c1a0a6d

View File

@ -87,10 +87,8 @@ abstract class Doctrine_Query_Condition extends Doctrine_Query_Part
// check that value isn't a string
if (strpos($value, '\'') === false) {
// parse booleans
if ($value == 'true')
$value = 1;
elseif ($value == 'false')
$value = 0;
$value = $this->query->getConnection()
->dataDict->parseBoolean($value);
$a = explode('.', $value);