8000 Missing queue_name parameter in Doctrine Transport by monteiro · Pull Request #40588 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Missing queue_name parameter in Doctrine Transport #40588

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

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Missing queue_name parameter in Doctrine Transport
  • Loading branch information
monteiro committed Mar 25, 2021
commit 7c40e060c33941ba2e229d11d6b1bfc7a39b265f
6974
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ public function findAll(int $limit = null): array
public function find($id): ?array
{
$queryBuilder = $this->createQueryBuilder()
->where('m.id = ?');

$stmt = $this->executeQuery($queryBuilder->getSQL(), [$id]);
->where('m.id = ? and m.queue_name = ?');
$stmt = $this->executeQuery($queryBuilder->getSQL(), [$id, $this->configuration['queue_name']]);

$data = $stmt instanceof Result || $stmt instanceof DriverResult ? $stmt->fetchAssociative() : $stmt->fetch();

return false === $data ? null : $this->decodeEnvelopeHeaders($data);
Expand Down
0