Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StorageExtension keeps holding reference to model if onPostExecute keeps ending with exception before StorageExtension is executed #923

Open
Tetragramat opened this issue Nov 22, 2021 · 0 comments

Comments

@Tetragramat
Copy link
Contributor

Tetragramat commented Nov 22, 2021

StorageExtension keeps holding reference to model if onPostExecute keeps ending with exception before StorageExtension is executed.

This becomes an issue if you're using Doctrine, executing request for multiple models and clearing EntityManager after each processed model.

The first processed model after such event ends with:
Notice: Undefined index: 000000002300cb730000000045222964 in vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:3013

@Tetragramat Tetragramat changed the title StorageExtension keeps holding reference to model if onPostExecute keeps ending with exception before StorageExtension is executed. StorageExtension keeps holding reference to model if onPostExecute keeps ending with exception before StorageExtension is executed Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant