Skip to content

Commit

Permalink
support for postgres search
Browse files Browse the repository at this point in the history
  • Loading branch information
ddereszewski committed May 19, 2020
1 parent 62c7795 commit c0731a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Controller/JobController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public function overviewAction(Request $request)
if ( ! empty($jobFilter->command)) {
$qb->andWhere($qb->expr()->orX(
$qb->expr()->like('j.command', ':commandQuery'),
$qb->expr()->like('j.args', ':commandQuery')
// Doesn't work for postgres
//$qb->expr()->like('j.args', ':commandQuery')
))
->setParameter('commandQuery', '%'.$jobFilter->command.'%');
}
Expand Down

0 comments on commit c0731a9

Please sign in to comment.