update dashboard

This commit is contained in:
Simon Vieille 2022-04-25 11:22:33 +02:00
commit 1619cadf64
Signed by: deblan
GPG key ID: 579388D585F70417
7 changed files with 140 additions and 3 deletions

View file

@ -34,4 +34,12 @@ class ConferenceRepositoryQuery extends RepositoryQuery
return $this->withThemeType($value);
}
}
public function latest(int $max = 5)
{
return $this
->addOrderBy('.date', 'DESC')
->setMaxResults($max)
;
}
}