Kdyby\Doctrine\Connection::quoteIdentifier PHP Method

quoteIdentifier() public method

Tries to autodetect, if identifier has to be quoted and quotes it.
public quoteIdentifier ( string $expression ) : string
$expression string
return string
    public function quoteIdentifier($expression)
    {
        $expression = trim($expression);
        if ($expression[0] === $this->getDatabasePlatform()->getIdentifierQuoteCharacter()) {
            return $expression;
            // already quoted
        }
        return parent::quoteIdentifier($expression);
    }