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