mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #8152] Add method from clear outdated insert cache #10832
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?
Original Pull Request: https://github.com/doctrine/orm/pull/8152
State: closed
Merged: No
Solving problems when changing a generator during casting. The problem is that the query and the set of columns in the insert request are cached. To solve the problem in the current version (2.7), I use this class, but this is not the right approach. This pull request adds a method to check if the type of the generator has changed and to clear the cache if it has changed. And a test was added to check the change in the strategy of creating an identifier at run time.
There is a second solution to the problem of adding a cache clearing method, but you will have to call it manually each time after changing the generator type.
closes #3118