lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
/**
     * {@inheritDoc}
     *
     * Postgres wants boolean values converted to the strings 'true'/'false'.
     */
Postgres wants boolean values converted to the strings 'true'/'false'.
Postgres wants boolean values converted to the strings ' true ' / ' false ' .
public function convertBooleans($item)
    {
        if ( ! $this->useBooleanTrueFalseStrings) {
            return parent::convertBooleans($item);
        }
        if (is_array($item)) {
            foreach ($item as $key => $value) {
                if (is_bool($value) || is_numeric($item)) {
                    $item[$key] = ($value) ? 'true' : 'false';
                }
            }
        } else {
           if (is_bool($item) || is_numeric($item)) {
               $item = ($item) ? 'true' : 'false';
           }
        }
        return $item;
    }
public function convertBooleans ( $ item ) { if ( ! $ this -> useBooleanTrueFalseStrings ) { return parent :: convertBooleans ( $ item ) ; } if ( is_array ( $ item ) ) { foreach ( $ item as $ key => $ value ) { if ( is_bool ( $ value ) || is_numeric ( $ item ) ) { $ item [ $ key ] = ( $ value ) ? 'true' : 'false' ; } } } else { if ( is_bool ( $ item ) || is_numeric ( $ item ) ) { $ item = ( $ item ) ? 'true' : 'false' ; } } return $ item ; }
{@inheritDoc}
 Postgres wants boolean values converted to the strings 'true'/'false'.
{ @inheritDoc } Postgres wants boolean values converted to the strings ' true ' / ' false ' .