lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
public function convertBooleans($item)
    {
        if (is_array($item)) {
            foreach ($item as $k => $value) {
                if (! is_bool($value)) {
                    continue;
                }

                $item[$k] = (int) $value;
            }
        } elseif (is_bool($item)) {
            $item = (int) $item;
        }

        return $item;
    }
public function convertBooleans($item)
    {
        if (is_array($item)) {
            foreach ($item as $k => $value) {
                if (! is_bool($value)) {
                    continue;
                }

                $item[$k] = (int) $value;
            }
        } elseif (is_bool($item)) {
            $item = (int) $item;
        }

        return $item;
    }
public function convertBooleans ( $ item ) { if ( is_array ( $ item ) ) { foreach ( $ item as $ k => $ value ) { if ( ! is_bool ( $ value ) ) { continue ; } $ item [ $ k ] = ( int ) $ value ; } } elseif ( is_bool ( $ item ) ) { $ item = ( int ) $ item ; } return $ item ; }
Some platforms need the boolean values to be converted.

The default conversion in this implementation converts to integers (false => 0, true => 1).

Note: if the input is not a boolean the original input might be returned.

There are two contexts when converting booleans: Literals and Prepared Statements.
This method should handle the literal case

@param mixed $item A boolean or an array of them.

@return mixed A boolean database value or an array of them.
Some platforms need the boolean values to be converted .