You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
First, make sure that the ORM used for querying and the ORM used in EntityManager are the same ORM object.
In rare cases they may be different, for example when the Cycle\ORM\ORM class is requested from DI rather than Cycle\ORM\ORMInterface.
No duplicates 馃ゲ.
What happened?
Hi,
I am encountering a strange issue, where the ORM tries to re-insert a row into a database.
I have a following code:
This code results into a following error:
The templateBlocks is a hasMany relation in template entity. The exam has a belongs to relation to the template.
When dumping the insert queries in
InsertQuery::run()
, the ORM indeed tries to execute a following SQL:The computed set of changes in the Tuple is not an empty array, although the row has been re-fetched by the repository in the first step.
My schema is generated from annotations, but I havent found any issues there. Everything seems to be generated correctly.
Do you have any idea what might be the cause? I tried to find the cause of this issues myself, but I am clueless.
Thanks.
Version
The text was updated successfully, but these errors were encountered: