- Update CommonTool to fix array string formatting issue- Refactor model generation template to use getOptions method
21 lines
375 B
Plaintext
21 lines
375 B
Plaintext
<?php
|
|
|
|
namespace {{modelNamespace}};
|
|
|
|
use app\common\model\TimeModel;
|
|
|
|
class {{modelName}} extends TimeModel
|
|
{
|
|
|
|
protected function getOptions(): array
|
|
{
|
|
return [
|
|
'name' => "{{table}}",
|
|
'table' => "{{prefix_table}}",
|
|
'deleteTime' => {{deleteTime}},
|
|
];
|
|
}
|
|
|
|
public array $notes = {{selectArrays}};
|
|
|
|
} |