Skip to content
Open
Changes from all commits
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
2 changes: 1 addition & 1 deletion Entity/Repository/JobManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function findJobForRelatedEntity($command, $relatedEntity, array $states
$rsm = new ResultSetMappingBuilder($this->getJobManager());
$rsm->addRootEntityFromClassMetadata('JMSJobQueueBundle:Job', 'j');

$sql = "SELECT j.* FROM jms_jobs j INNER JOIN jms_job_related_entities r ON r.job_id = j.id WHERE r.related_class = :relClass AND r.related_id = :relId AND j.command = :command";
$sql = "SELECT j.* FROM jms_jobs j INNER JOIN jms_job_related_entities r ON r.job_id = j.id WHERE r.related_class = :relClass AND r.related_id = :relId AND j.command = :command LIMIT 1";
$params = new ArrayCollection();
$params->add(new Parameter('command', $command));
$params->add(new Parameter('relClass', $relClass));
Expand Down