【发布时间】:2012-11-07 18:09:20
【问题描述】:
我是 ZF2 的新手,我正在尝试使用 tableGateway 来管理和更新数据库中的条目。我可以毫无问题地选择和更新项目,但插入时出现错误。由于 tableGateway 类动态创建查询,我如何查看查询本身?
$this->tableGateway->insert($data);
执行过程中发生错误;请稍后再试。 附加信息: Zend\Db\Adapter\Exception\InvalidQueryException
文件:
/[redacted]/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Driver/Pdo/Statement.php:220
消息:
Statement could not be executed
【问题讨论】:
标签: zend-framework2