From a80f95f64d5f700a4aec4b8304d90d43a80b21bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 19 Jan 2021 19:50:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gii/GiiModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gii/GiiModel.php b/Gii/GiiModel.php index f3e0bc7e..1464f10c 100644 --- a/Gii/GiiModel.php +++ b/Gii/GiiModel.php @@ -142,7 +142,7 @@ class ' . $managerName . ' extends ActiveRecord $html .= $this->createRules($this->fields); - $out = ['rules', 'tableName']; + $out = ['rules', 'tableName', 'attributes']; if (is_object($class)) { $methods = $class->getMethods(\ReflectionMethod::IS_PUBLIC);