Skip to content
Snippets Groups Projects
Commit 6fbf1d81 authored by gauthierb's avatar gauthierb
Browse files

Service PJ : correction syntaxe requête incorrecte.

parent efdbb79e
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ class PieceJointe extends AbstractEntityService
list($qb, $alias) = $this->initQuery($qb, $alias);
$qb->leftJoin("$alias.fichier", "f");
$op = $exists ? '> 0' : '= 0';
$qb->andWhere("SIZE (f) $op");
$qb->andWhere("SIZE ($alias.fichier) $op");
return $qb;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment