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

[Messenger] Make Doctrine connection ignore unrelated tables on setup #54392

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

MatTheCat
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #49108
License MIT

Introspecting the whole database can cause issues like Doctrine crashing on unknown column types. This PR updates the schema assets filter (added by #31625) to only consider the messages table, as it is the only one a connection setup needs to care about.

Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the test.

@fabpot
Copy link
Member

fabpot commented Apr 8, 2024

Thank you @MatTheCat.

@fabpot fabpot merged commit 950ca75 into symfony:5.4 Apr 8, 2024
9 of 12 checks passed
@MatTheCat MatTheCat deleted the ticket_49108 branch April 8, 2024 12:45
This was referenced Apr 29, 2024
@chriskapp
Copy link
Contributor

In our case this PR breaks on postgres if a newer version of doctrine dbal is used since the filter receives also AbstractAsset objects s.
image

This issue is also already fixed by @xabbuh s.
symfony/doctrine-messenger@v6.4.7...6.4

So for others searching this issue, we only need to wait for the next v6.4.8 release.

@thePanz
Copy link
Contributor

thePanz commented May 8, 2024

For reference: #54775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants