【发布时间】:2016-11-02 06:44:04
【问题描述】:
我目前正在为一些测试创建一些固定装置,但我遇到了这个错误。你知道如何解决它吗?
我有很多灯具要复制粘贴。
A new entity was found through the relationship '***' that was not configured to cascade persist operations for entity:
***. To solve this issue: Either explicitly call EntityManager#persist() on
this unknown entity or configure cascade persist this association in the
mapping for example @OneToOne(..,cascade={"persist"}). If you cannot find
out which entity causes the problem implement '***#__toString()' to get a clue.
【问题讨论】:
标签: php symfony doctrine-orm copy fixtures