Doctrine\DBAL\Platforms\PostgreSqlPlatform::convertBooleans PHP Метод

convertBooleans() публичный Метод

Postgres wants boolean values converted to the strings 'true'/'false'.
public convertBooleans ( $item )
    public function convertBooleans($item)
    {
        if (!$this->useBooleanTrueFalseStrings) {
            return parent::convertBooleans($item);
        }
        return $this->doConvertBooleans($item, function ($boolean) {
            if (null === $boolean) {
                return 'NULL';
            }
            return true === $boolean ? 'true' : 'false';
        });
    }
PostgreSqlPlatform