private function fieldExists($tableName, $columnName): bool
    {
        if (!\array_key_exists($tableName, $this->schemaCache)) {
            $this->schemaCache[$tableName] = $this->connection->getSchemaManager()->listTableColumns($tableName);
        }

        return isset($this->schemaCache[$tableName][$columnName]);
    }
private function fieldExists($tableName, $columnName): bool
    {
        if (!\array_key_exists($tableName, $this->schemaCache)) {
            $this->schemaCache[$tableName] = $this->connection->getSchemaManager()->listTableColumns($tableName);
        }

        return isset($this->schemaCache[$tableName][$columnName]);
    }
private function fieldExists ( $ tableName , $ columnName ) : bool { if ( ! \ array_key_exists ( $ tableName , $ this -> schemaCache ) ) { $ this -> schemaCache [ $ tableName ] = $ this -> connection -> getSchemaManager ( ) -> listTableColumns ( $ tableName ) ; } return isset ( $ this -> schemaCache [ $ tableName ] [ $ columnName ] ) ; }
Test if a column exists in a table.

@param string $tableName  Table name.
@param string $columnName Column name.

@return bool
Test if a column exists in a table .