Get from database set type field - Agile Toolkit

135 Views Asked by At

I've created a model which adds fields from database:

$this->addField('field')->type();

And the field type, I need to retrieve from database is 'set', but as far as I know, there is no type('set'). So, what can I do, to get that type?

Thank you in advance.

1

There are 1 best solutions below

0
On
    $this->addField('colour')
         ->datatype('list')
         ->listData(array('r'=>'red','g'=>'green','y'=>'yellow'));