【发布时间】:2018-01-31 05:42:39
【问题描述】:
我正在尝试将 SQL 视图与 Doctrine 一起使用。
到目前为止一切正常,但是在运行基本的固定装置加载时我遇到了问题(没有选项)。我收到以下错误消息。
[Doctrine\DBAL\DBALException]
An exception occurred while executing 'DELETE FROM gp_items':
SQLSTATE[42000]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]View or function 'gp_items' is not updatable
because the modification affects multiple base tables.
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[42000]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]View or function 'gp_items' is not updatable
because the modification affects multiple base tables.
[PDOException]
SQLSTATE[42000]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]View or function 'gp_items' is not updatable
because the modification affects multiple base tables.
我查看了从捆绑包中加载固定装置的代码(“doctrine/doctrine-fixtures-bundle”:“^2.3”),我认为我必须对 ORMPurger 进行一些更改(Doctrine\Common\DataFixtures\Purger ) 但我不知道该怎么做。
所以我想知道如何覆盖特定类中的函数。
干杯!
【问题讨论】:
标签: sql-server symfony doctrine-orm views