You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
For anyone needing a work-around, and you choose to create all your Doctrine endpoints at the same time, you may run the application through the php internal server php -S localhost:8080 -t public public which is single threaded and will not cause a race condition.
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.
Originally posted by @TomHAnderson at zfcampus/zf-apigility-admin-ui#109
The text was updated successfully, but these errors were encountered: