src/QueryParserCustomFields.php
private function getTextFields($table): array
    {
        $columnsData = $this->model->getReadConnection()->describeColumns($table);
        $textFields = [];

        foreach ($columnsData as $column) {
            switch ($column->getType()) {
                case \Phalcon\Db\Column::TYPE_VARCHAR:
                case \Phalcon\Db\Column::TYPE_TEXT:
                    $textFields[] = $column->getName();
                    break;
            }
        }

        return $textFields;
    }
private function getTextFields($table): array
    {
        $columnsData = $this->model->getReadConnection()->describeColumns($table);
        $textFields = [];

        foreach ($columnsData as $column) {
            switch ($column->getType()) {
                case \Phalcon\Db\Column::TYPE_VARCHAR:
                case \Phalcon\Db\Column::TYPE_TEXT:
                    $textFields[] = $column->getName();
                    break;
            }
        }

        return $textFields;
    }
private function getTextFields ( $ table ) : array { $ columnsData = $ this -> model -> getReadConnection ( ) -> describeColumns ( $ table ) ; $ textFields = [ ] ; foreach ( $ columnsData as $ column ) { switch ( $ column -> getType ( ) ) { case \ Phalcon \ Db \ Column :: TYPE_VARCHAR : case \ Phalcon \ Db \ Column :: TYPE_TEXT : $ textFields [ ] = $ column -> getName ( ) ; break ; } } return $ textFields ; }
get the text field from this model database
so we can do like search

@param  string $table
@return array
get the text field from this model database so we can do like search