mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Merge branch '172-missing-exports' into 'master'
Fix some issues with exports Closes #172 See merge request Chill-Projet/chill-bundles!601
This commit is contained in:
@@ -38,7 +38,7 @@ final readonly class DurationAggregator implements AggregatorInterface
|
||||
match ($data['precision']) {
|
||||
'day' => $qb->addSelect('(COALESCE(acp.closingDate, :now) - acp.openingDate) AS duration_aggregator'),
|
||||
'week' => $qb->addSelect('(COALESCE(acp.closingDate, :now) - acp.openingDate) / 7 AS duration_aggregator'),
|
||||
'month' => $qb->addSelect('(EXTRACT (MONTH FROM AGE(COALESCE(acp.closingDate, :now), acp.openingDate)) * 12 +
|
||||
'month' => $qb->addSelect('(EXTRACT (YEAR FROM AGE(COALESCE(acp.closingDate, :now), acp.openingDate)) * 12 +
|
||||
EXTRACT (MONTH FROM AGE(COALESCE(acp.closingDate, :now), acp.openingDate))) AS duration_aggregator'),
|
||||
default => throw new \LogicException('precision not supported: '.$data['precision']),
|
||||
};
|
||||
|
@@ -28,7 +28,7 @@ use Symfony\Component\Form\FormBuilderInterface;
|
||||
*
|
||||
* Makes use of AccompanyingPeriodInfo
|
||||
*/
|
||||
readonly class UserWorkingOnCourseFilter implements FilterInterface
|
||||
final readonly class UserWorkingOnCourseFilter implements FilterInterface
|
||||
{
|
||||
public function __construct(
|
||||
private UserRender $userRender,
|
||||
|
Reference in New Issue
Block a user