src/Neutrino/Database/Schema/Blueprint.php
protected function fluentToColumn(Definition $column, DialectInterface $grammar)
    {
        $attributes = $column->getAttributes();

        $this->buildIndexAndForeignFromFluentColumn($column);

        $types = $grammar->getType($column);

        if (isset($attributes['type'])) {
            unset($attributes['type']);
        }
        if (isset($attributes['typeReference'])) {
            unset($attributes['typeReference']);
        }
        if (isset($attributes['typeValues'])) {
            unset($attributes['typeValues']);
        }

        if (isset($attributes['nullable'])) {
            $attributes['notNull'] = !$attributes['nullable'];
        } else {
            $attributes['notNull'] = true;
        }

        return new Column($column->get('name'), array_merge($types, $attributes));
    }
protected function fluentToColumn(Definition $column, DialectInterface $grammar)
    {
        $attributes = $column->getAttributes();

        $this->buildIndexAndForeignFromFluentColumn($column);

        $types = $grammar->getType($column);

        if (isset($attributes['type'])) {
            unset($attributes['type']);
        }
        if (isset($attributes['typeReference'])) {
            unset($attributes['typeReference']);
        }
        if (isset($attributes['typeValues'])) {
            unset($attributes['typeValues']);
        }

        if (isset($attributes['nullable'])) {
            $attributes['notNull'] = !$attributes['nullable'];
        } else {
            $attributes['notNull'] = true;
        }

        return new Column($column->get('name'), array_merge($types, $attributes));
    }
Transform a Fluent(Column) to a \Phalcon\Db\Column

@param \Neutrino\Database\Schema\Definition       $column
@param \Neutrino\Database\Schema\DialectInterface $grammar

@return \Phalcon\Db\Column