Hi!

Why do I get Phalcon\Db\Column::TYPE_VARCHAR(2) instead of Phalcon\Db\Column::TYPE_JSON(15) for a field with type JSON?

I'm trying to get field types (describeColumns), for further processing only JSON fields.

// In my Base model
public function getJsonFields()
{
        $jsonFields = [];

        $fields = $this->getReadConnection()->describeColumns($this->getSource());
        foreach ($fields as $field) {
            if ($field->getType() == \Phalcon\Db\Column::TYPE_JSON) {
                $jsonFields[] = $field->getName();
            }
        }

        return $jsonFields;
}

My phalcon version is 3.0.4