{"record":{"id":"5bc6324c234dcb10","repo":"yiisoft/yii2","slug":"the-name-property-must-be-set","errorCode":null,"errorMessage":"The \"name\" property must be set.","messagePattern":"The \"name\" property must be set\\.","errorType":"exception","errorClass":"InvalidConfigException","httpStatus":null,"severity":"error","filePath":"framework/grid/RadioButtonColumn.php","lineNumber":75,"sourceCode":"     * 'radioOptions' => function ($model, $key, $index, $column) {\n     *     return ['value' => $model->attribute];\n     * }\n     * ```\n     *\n     * @see \\yii\\helpers\\Html::renderTagAttributes() for details on how attributes are being rendered.\n     */\n    public $radioOptions = [];\n\n\n    /**\n     * {@inheritdoc}\n     * @throws \\yii\\base\\InvalidConfigException if [[name]] is not set.\n     */\n    public function init()\n    {\n        parent::init();\n        if (empty($this->name)) {\n            throw new InvalidConfigException('The \"name\" property must be set.');\n        }\n    }\n\n    /**\n     * {@inheritdoc}\n     */\n    protected function renderDataCellContent($model, $key, $index)\n    {\n        if ($this->content !== null) {\n            return parent::renderDataCellContent($model, $key, $index);\n        }\n\n        if ($this->radioOptions instanceof Closure) {\n            $options = call_user_func($this->radioOptions, $model, $key, $index, $this);\n        } else {\n            $options = $this->radioOptions;\n            if (!isset($options['value'])) {\n                $options['value'] = is_array($key) ? json_encode($key, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) : $key;","sourceCodeStart":57,"sourceCodeEnd":93,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/grid/RadioButtonColumn.php#L57-L93","documentation":"Error \"The \"name\" property must be set.\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/grid/RadioButtonColumn.php:75 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"66f00d18a29b520f85e8e8f1e32d1e7e7b556cac","analyzedAt":"2026-08-17T05:17:23.470Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}