Extend the console command configuration to include 'crud' alongside the existing 'curd' command for better supporting CRUD operations in the application. Additionally, update the user warning message to recommend using the visual generation features for CRUD functionality within the system, indicating that further support for command-line CURD/CRUD will be phased out.Adjust the related fields handling in the Curd command class methods to use 'onlyField' for consistency with the singular form of field manipulations, and ensure correct method parameter names are reflected in the relation setup.
15 lines
373 B
PHP
15 lines
373 B
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | 控制台配置
|
|
// +----------------------------------------------------------------------
|
|
return [
|
|
|
|
// 指令定义
|
|
'commands' => [
|
|
'curd' => 'app\common\command\Curd',
|
|
'crud' => 'app\common\command\Curd',
|
|
'node' => 'app\common\command\Node',
|
|
],
|
|
|
|
];
|