adjust property name to make it work with changes calendar bundle

This commit is contained in:
Julie Lenaerts 2022-09-08 11:25:50 +02:00
parent c1c472f546
commit 48548e020f
6 changed files with 6 additions and 6 deletions

View File

@ -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');

View File

@ -41,7 +41,7 @@ final class JobAggregator 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('IDENTITY(caluser.userJob) as job_aggregator');

View File

@ -41,7 +41,7 @@ final class ScopeAggregator 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('IDENTITY(caluser.mainScope) as scope_aggregator');

View File

@ -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);

View File

@ -43,7 +43,7 @@ class JobFilter implements FilterInterface
public function alterQuery(QueryBuilder $qb, $data)
{
if (!in_array('caluser', $qb->getAllAliases(), true)) {
$qb->join('cal.user', 'caluser');
$qb->join('cal.mainUser', 'caluser');
}
$where = $qb->getDQLPart('where');

View File

@ -43,7 +43,7 @@ class ScopeFilter implements FilterInterface
public function alterQuery(QueryBuilder $qb, $data)
{
if (!in_array('caluser', $qb->getAllAliases(), true)) {
$qb->join('cal.user', 'caluser');
$qb->join('cal.mainUser', 'caluser');
}
$where = $qb->getDQLPart('where');