[PR #8152] Add method from clear outdated insert cache #10832

Closed
opened 2026-01-22 16:08:50 +01:00 by admin · 0 comments
Owner

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

**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](https://gist.github.com/uginroot/33a2851d87bae3e261585c4befea35dc), 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
admin added the pull-request label 2026-01-22 16:08:50 +01:00
admin closed this issue 2026-01-22 16:08:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10832