yii\sphinx\Schema::loadColumnSchema PHP Метод

loadColumnSchema() защищенный Метод

Loads the column information into a ColumnSchema object.
protected loadColumnSchema ( array $info ) : ColumnSchema
$info array column information
Результат ColumnSchema the column schema object
    protected function loadColumnSchema($info)
    {
        $column = new ColumnSchema();
        $column->name = $info['Field'];
        $column->dbType = $info['Type'];
        $column->isPrimaryKey = $column->name == 'id';
        $type = $info['Type'];
        if (isset($this->typeMap[$type])) {
            $column->type = $this->typeMap[$type];
        } else {
            $column->type = self::TYPE_STRING;
        }
        $column->isField = $type == 'field';
        $column->isAttribute = !$column->isField;
        $column->isMva = $type == 'mva';
        $column->phpType = $this->getColumnPhpType($column);
        return $column;
    }