schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
335 stars 254 forks source link

Fix invalid string comparison operator in sql query #229

Closed k127 closed 2 years ago

k127 commented 5 years ago

Bug

JobManager::findJob() never returns a Job.

Solution

Changed

SELECT …
  WHERE … AND j.args = :args

to

SELECT …
  WHERE … AND j.args LIKE :args

which now possibly does return a Job entity.