checkboxList问题
$tradeList = \common\models\Trade::find()->select('id,name')->all();
$trades = \yii\helpers\ArrayHelper::map($tradeList, 'id', 'name');
<?= $form->field($model, 'trade_ids')->checkboxList($trades) ?>
修改的时候 如果trade_ids是 ,29,30, 数据就显示不出来 如果是 ,29 就可以显示并选中 怎么搞定他