mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
adjust property name to make it work with changes calendar bundle
This commit is contained in:
parent
c1c472f546
commit
d0d7c0babf
@ -41,7 +41,7 @@ final class AgentAggregator implements AggregatorInterface
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
if (!in_array('caluser', $qb->getAllAliases(), true)) {
|
||||
$qb->join('cal.user', 'caluser');
|
||||
$qb->join('cal.mainUser', 'caluser');
|
||||
}
|
||||
|
||||
$qb->addSelect('caluser.id AS agent_aggregator');
|
||||
|
@ -37,7 +37,7 @@ class AgentFilter implements FilterInterface
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
$where = $qb->getDQLPart('where');
|
||||
$clause = $qb->expr()->in('cal.user', ':agents');
|
||||
$clause = $qb->expr()->in('cal.mainUser', ':agents');
|
||||
|
||||
if ($where instanceof Andx) {
|
||||
$where->add($clause);
|
||||
|
Loading…
x
Reference in New Issue
Block a user