fix query in timeline in activity and person bundle

This commit is contained in:
2021-05-25 09:48:19 +02:00
parent 74541f360b
commit 9b1a66c992
6 changed files with 43 additions and 58 deletions

View File

@@ -28,8 +28,6 @@ use Doctrine\ORM\NativeQuery;
/**
* Build timeline
*
* @author Julien Fastré <julien.fastre@champs-libres.coop>
*/
class TimelineBuilder implements ContainerAwareInterface
{

View File

@@ -38,12 +38,12 @@ class TimelineSingleQuery
public static function fromArray(array $a)
{
return new TimelineSingleQuery(
$a['id'],
$a['date'],
$a['type'] ?? $a['key'],
$a['FROM'] ?? $a['from'],
$a['WHERE'] ?? $a['where'],
$a['parameters']);
$a['id'] ?? null,
$a['date'] ?? null,
$a['type'] ?? $a['key'] ?? null,
$a['FROM'] ?? $a['from'] ?? null,
$a['WHERE'] ?? $a['where'] ?? null,
$a['parameters'] ?? null);
}
public function getId(): string