Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个从数据库添加字段的模型:
$this->addField('field')->type();
我需要从数据库中检索的字段类型是'set',但据我所知,没有类型('set')。那么,我该怎么做才能获得这种类型?
先感谢您。
$this->addField('colour') ->datatype('list') ->listData(array('r'=>'red','g'=>'green','y'=>'yellow'));