Skip to content
Snippets Groups Projects
Commit f0c988b4 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction dans le cas de multi-utilisation de finderByStructure dans une même...

Correction dans le cas de multi-utilisation de finderByStructure dans une même requête dql en rendant l'alias de la jointure dynamique
parent a863ef32
Branches
Tags
Loading
Pipeline #35299 passed
...@@ -517,8 +517,8 @@ abstract class AbstractEntityService extends AbstractService ...@@ -517,8 +517,8 @@ abstract class AbstractEntityService extends AbstractService
if (!$structure){ if (!$structure){
$qb->andWhere("$alias.structure IS NULL"); $qb->andWhere("$alias.structure IS NULL");
}else{ }else{
$qb->leftJoin("$alias.structure", 'strids'); $qb->leftJoin("$alias.structure", $alias.'strids');
$qb->andWhere($e->like("strids.ids", $e->literal($structure->idsFilter()))); $qb->andWhere($e->like($alias."strids.ids", $e->literal($structure->idsFilter())));
} }
return $qb; return $qb;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment