mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 01:55:01 +00:00
fix query in timeline in activity and person bundle
This commit is contained in:
@@ -25,8 +25,6 @@ use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
||||
|
||||
/**
|
||||
* Provide information for opening periods to timeline
|
||||
*
|
||||
* @author Julien Fastré <julien.fastre@champs-libres.coop>
|
||||
*/
|
||||
class TimelineAccompanyingPeriodClosing extends AbstractTimelineAccompanyingPeriod
|
||||
{
|
||||
@@ -49,13 +47,15 @@ class TimelineAccompanyingPeriodClosing extends AbstractTimelineAccompanyingPeri
|
||||
$metadata = $this->em
|
||||
->getClassMetadata(AccompanyingPeriod::class);
|
||||
|
||||
$data = $this->basicFetchQuery($context, $args);
|
||||
|
||||
$data['type'] = 'accompanying_period_closing';
|
||||
$data['date'] = $metadata->getColumnName('closingDate');
|
||||
$data['WHERE'] = $this->buildWhereClause($context, $args);
|
||||
$query = $this->basicFetchQuery($context, $args);
|
||||
[$where, $parameters] = $this->buildWhereClause($context, $args);
|
||||
$query->setKey('accompanying_period_closing')
|
||||
->setDate($metadata->getColumnName('closingDate'))
|
||||
->setWhere($where)
|
||||
->setParameters($parameters)
|
||||
;
|
||||
|
||||
return $data;
|
||||
return $query;
|
||||
}
|
||||
|
||||
protected function buildWhereClause($context, array $args): array
|
||||
|
Reference in New Issue
Block a user