public function createColumnFromArray(array $data)
    {
        return $this->createColumn(
            $data['name'],
            $data['type'],
            $data['length'],
            !empty($data['notnull']),
            @$data['default'],
            !empty($data['autoincrement']),
            @$data['comment']
        );
    }
public function createColumnFromArray(array $data)
    {
        return $this->createColumn(
            $data['name'],
            $data['type'],
            $data['length'],
            !empty($data['notnull']),
            @$data['default'],
            !empty($data['autoincrement']),
            @$data['comment']
        );
    }
public function createColumnFromArray ( array $ data ) { return $ this -> createColumn ( $ data [ 'name' ] , $ data [ 'type' ] , $ data [ 'length' ] , ! empty ( $ data [ 'notnull' ] ) , @ $ data [ 'default' ] , ! empty ( $ data [ 'autoincrement' ] ) , @ $ data [ 'comment' ] ) ; }
Construct a new column with data from an array

This is a wrapper around createColumn() which gets column data from an
associative array.

The "name", "type" and "length" elements must always be present. The
"notnull" and "autoincrement" elements default to FALSE if not given. The
"default" and "comment" elements default to NULL.

@param array $data column data: name, type, length, notnull, default, autoincrement, comment
@return \Nada\Column\AbstractColumn Temporary column object
Construct a new column with data from an array