From 5d5e309b09b7f2e375ce7456f6f38d14e5f3a537 Mon Sep 17 00:00:00 2001 From: Benjamin Jeanjean Date: Tue, 12 Dec 2017 21:12:37 +0100 Subject: [PATCH] Update JobRepository.php Prefer constant as hard coding. --- Entity/Repository/JobRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Entity/Repository/JobRepository.php b/Entity/Repository/JobRepository.php index f9edc9ec..52234980 100644 --- a/Entity/Repository/JobRepository.php +++ b/Entity/Repository/JobRepository.php @@ -100,7 +100,7 @@ public function getOrCreateIfNotExists($command, array $args = array()) $firstJob = $this->_em->createQuery("SELECT j FROM JMSJobQueueBundle:Job j WHERE j.command = :command AND j.args = :args ORDER BY j.id ASC") ->setParameter('command', $command) - ->setParameter('args', $args, 'json_array') + ->setParameter('args', $args, Type::JSON_ARRAY) ->setMaxResults(1) ->getSingleResult();