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

Fix initializing of webspaces with same role name #112

Merged
merged 1 commit into from
May 7, 2019

Conversation

niklasnatter
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
License MIT

What's in this PR?

This PR adjusts the InitCommand to call flush on the EntityManager after initializing a webspace.

Why?

Because this way it is possible to configure the same role for multiple Webspaces. Otherwise the created role is not flushed and therefore created again during the initialization of the second Webspace. This leads to a Doctrine\DBAL\Exception\UniqueConstraintViolationException.

@alexander-schranz alexander-schranz changed the title Flush after Webspace was initialized in InitCommand Fix initializing of webspaces with same role name May 7, 2019
@alexander-schranz alexander-schranz merged commit d122ee6 into develop May 7, 2019
@alexander-schranz alexander-schranz deleted the nnatter-patch-1 branch May 7, 2019 09:51
alexander-schranz pushed a commit that referenced this pull request May 17, 2019
Flush after Webspace was initialized in InitCommand
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

Successfully merging this pull request may close these issues.

2 participants