This commit is contained in:
2021-01-19 19:49:51 +08:00
parent 263417ccb1
commit 2c527c478f
+1 -13
View File
@@ -142,19 +142,7 @@ class ' . $managerName . ' extends ActiveRecord
$html .= $this->createRules($this->fields);
$html .= '
/**
* @return array
*/
public function attributes() : array
{
return [' . implode('', $this->res) . '
];
}' . "\n";
$out = ['rules', 'tableName', 'attributes'];
$out = ['rules', 'tableName'];
if (is_object($class)) {
$methods = $class->getMethods(\ReflectionMethod::IS_PUBLIC);