Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Create new Service for Doctrine causes race condition #109

Open
TomHAnderson opened this issue Apr 13, 2016 · 2 comments
Open

Create new Service for Doctrine causes race condition #109

TomHAnderson opened this issue Apr 13, 2016 · 2 comments

Comments

@TomHAnderson
Copy link
Contributor

When using Doctrine and creating a new service if more than one entity is selected a race condition occurs when both entities are submitted to be created. This is caused because creating a new resource invokes code generation and the two jobs are submitted simultaneously.

The jobs should use a promise object to run one at a time.

p.s. I thought this was already reported. It's been around forever.

@TomHAnderson
Copy link
Contributor Author

Given the recent uptick in Doctrine contribution to Apigility I would like to bump this up to a higher priority.

ping @jguittard

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-admin-ui; a new issue has been opened at laminas-api-tools/api-tools-admin-ui#12.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants