doctrine-orm - 平台不支持 Doctrine getSequenceNextValSQL?
问题描述
我有一个将数据插入数据库的功能。当我通过浏览器运行时,它工作正常。但是当我从命令运行时,它给了我以下错误:
at /www/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:39
Exception trace:
is not supported by platform.
Operation 'Doctrine\DBAL\Platforms\AbstractPlatform::getSequenceNextValSQL'
[Doctrine\DBAL\Exception]
我有以下命令要执行:
受保护的静态 $defaultName = 'app:import:data';
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
$this->importer->import('test');
$io->success('EOF');
return 0;
}
这些是我使用过的依赖项:
"beberlei/doctrineextensions": "^1.3",
"doctrine/annotations": "^1.0",
"doctrine/doctrine-bundle": "*",
"doctrine/doctrine-migrations-bundle": "^3.0",
"doctrine/orm": "2.8.1",
解决方案
推荐阅读
- reactjs - 为什么我无法获取 api?
- javascript - JS在向下滚动到某个部分时更改类无法正常工作
- php - PHP登录表单无法正常运行,输出错误
- python - Pandas DataFrame ValueError:传递的项目数错误 2,位置暗示 1
- sql-server - 如何用 XQuery 中节点的另一个值替换值?
- reactjs - Axios 无法向 DRF api 发送 POST 请求
- amazon-web-services - 如何在成员账户中创建 S3 存储桶时强制标记
- c++ - 使用依赖注入注入参数
- fortran - 什么时候必须在模块中使用 CONTAINS?
- url - 来自抓取的格式错误的 URL