From e29659c930c710f2ba3e8e3d43a0d0d01da35235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 29 Sep 2021 11:19:24 +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 --- kiri-gii/GiiBase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kiri-gii/GiiBase.php b/kiri-gii/GiiBase.php index e7a17979..00805625 100644 --- a/kiri-gii/GiiBase.php +++ b/kiri-gii/GiiBase.php @@ -178,6 +178,9 @@ abstract class GiiBase foreach ($class->getDefaultProperties() as $key => $val) { $property = $class->getProperty($key); + if ($key == 'primary' || $key == 'table' || $key == 'connection' || $key == 'rules') { + continue; + } if ($property->class != $class->getName()) continue; if (is_array($val)) { $val = '[\'' . implode('\', \'', $val) . '\']'; @@ -201,9 +204,6 @@ abstract class GiiBase $html .= ' ' . $debug . ' static' . $type; } else { - if ($key == 'primary' || $key == 'table' || $key == 'connection' || $key == 'rules') { - continue; - } $html .= ' ' . $debug . $type; }