mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Stateless getInsertSQL() #7152
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PsmaDev on GitHub (May 18, 2023).
Sorry, I think I did not explane correctly issue https://github.com/doctrine/orm/issues/10709
I change table prefix in middelware during each reqest, and it works perfect with UPDATE and SELECT.
Problem cause getInsertSQL() has check
if ($this->insertSql !== null) { return $this->insertSql; }So, it sets once and next requests keeps the same, If i check methodata it is ok, it's changed.
@beberlei commented on GitHub (May 18, 2023):
You described the problem perfectly well, but as I mentioned changing the metadata of a class after the EntityManager was used is just not supported. This has nothing to do with UDPATE and SELECT working.
Please stop opening new issues for this. You need to find another solution for your use-case.