cli生成crud和菜单,删除添加的记录报500错误
php think crud -t redcross
php think menu -c redcross

错误提示
Exception in Query.php line 94
method not exist:think\db\Query->destory
$field = Loader::parseName(substr($method, 5));
$where[$field] = $args[0];
return $this->where($where)->find();
} elseif (strtolower(substr($method, 0, 10)) == 'getfieldby') {
// 根据某个字段获取记录的某个值
$name = Loader::parseName(substr($method, 10));
$where[$name] = $args[0];
return $this->where($where)->value($args[1]);
} else {
throw new Exception('method not exist:' . __CLASS__ . '->' . $method);
}
}
/**
* 获取当前的数据库Connection对象
* @access public
* @return Connection
*/
public function getConnection()
Call Stack
in Query.php line 94
at Query->__call('destory', ['5'])
at call_user_func_array([object(Query), 'destory'], ['5']) in Model.php line 2051
at Model->__call('destory', ['5']) in Backend.php line 157
at Backend->del('5')
at ReflectionMethod->invokeArgs(object(Redcross), ['5']) in App.php line 197
at App::invokeMethod([object(Redcross), 'del'], []) in App.php line 411
at App::module(['admin', 'redcross', 'del'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 296
at App::exec(['type' => 'module', 'module' => ['admin', 'redcross', 'del']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
at App::run() in start.php line 18
at require('D:\xampp\htdocs\nxhh...') in index.php line 24