Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Create doctrine messenger transport table on send#33559
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Create this table on send just like it is created on get to match thedocumentation and expectations for auto_setup.
Tobion left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Could you delete the wrong comment in
symfony/src/Symfony/Component/Messenger/Tests/Transport/Doctrine/DoctrineIntegrationTest.php
Line 43 in9554525
| // call send to auto-setup the table |
auto-setup happens on get and send
jrjohnson commentedSep 12, 2019
@Tobion, yes. Deleted! |
bendavies commentedSep 12, 2019
superseded in#32308 really (which i've not managed to finish off) |
jrjohnson commentedSep 12, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Oh good@bendavies I was considering that as a next step, I'm glad you're already looking into it. Seems like this should still be merged as a bug fix for release to be enhanced when you finish up that PR? |
fabpot commentedSep 25, 2019
Closing in favor of#32308 |
Create doctrine messenger transport table on send just like it is created on get to match the
documentation and expectations for auto_setup.
Existing documentation athttps://symfony.com/doc/current/messenger.html#doctrine-transport includes:
I think this is correct as I'd expect the table to be autocreated on set before get.
Tests are added here, but they don't actually fail correctly and I'm not sure why. I wonder if sqlite or doctrine is auto creating this table on insert when it isn't present. Maybe it's something else that you will see that I'm missing.