-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[messenger][Doctrine] doctrine:schema:create breaks #40130
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
Comments
I'm having a similar issue when attempting to run tests using https://github.com/zenstruck/foundry or when running |
Hi people, i've this problem too. If you don't use auto setup, you app need a migration, or if you use auto setup, juste apply messenger:setup-transports with the first fix #38136. |
yes but with auto setup, this case #40055 does not work |
we agree, that's what I meant |
Hey @alexdruhet |
Hi @Nyholm, |
I agree with you. I started a PR and I will work to fix #39928 in a different way. |
I just see that, thanks for helping! |
This PR was squashed before being merged into the 5.2 branch. Discussion ---------- [Messenger] Doctrine setup with migrations | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | | Deprecations? | no | Tickets | Fix #40130 | License | MIT | Doc PR | This PR reverts parts of #40055. When running these commands, You do need to be in a transaction: - `doctrine:schema:create` - `messenger:setup-transports` - `doctrine:migrations:diff` and `doctrine:migrations:migrate` Commits ------- 3371e1c [Messenger] Doctrine setup with migrations
Symfony version affected: 5.2.3
Description
Using Postgresql and
symfony/doctrine-messenger
, upgrading tosymfony/doctrine-messenger
5.2.3 breaksdoctrine:schema:create
command.How to reproduce
bin/console doctrine:schema:create
Possible Solution
The bug was introduced by PR #40055. Reverting it solve the issue but also reopens #39928. This must be taking into account to define a PR.
For now I have put a composer version constraint:
Additional context
The response returned by
bin/console doctrine:schema:create
:The text was updated successfully, but these errors were encountered: