mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
correct identification of from()
This commit is contained in:
parent
3295031bcd
commit
d245afb009
@ -15,6 +15,7 @@ use Chill\MainBundle\Export\AggregatorInterface;
|
||||
use Chill\MainBundle\Export\ExportElementValidatedInterface;
|
||||
use Chill\MainBundle\Form\Type\ChillDateType;
|
||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||
use Chill\PersonBundle\Entity\Household\HouseholdMember;
|
||||
use Chill\PersonBundle\Repository\Household\PositionRepository;
|
||||
use DateTime;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
@ -46,7 +47,7 @@ final class HouseholdPositionAggregator implements AggregatorInterface, ExportEl
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
$qb->resetDQLPart('from');
|
||||
$qb->from('ChillPersonBundle:Household\HouseholdMember', 'hm');
|
||||
$qb->from(HouseholdMember::class, 'hm');
|
||||
|
||||
$qb->join('hm.person', 'person');
|
||||
$qb->join('person.center', 'center');
|
||||
@ -70,7 +71,7 @@ final class HouseholdPositionAggregator implements AggregatorInterface, ExportEl
|
||||
} else {
|
||||
$qb->groupBy('household_position_aggregator');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function applyOn()
|
||||
|
Loading…
x
Reference in New Issue
Block a user