cs: Third and last part.

This commit is contained in:
Pol Dellaiera 2021-11-23 14:45:31 +01:00
parent 3ea35682eb
commit a2c209a857
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA
2 changed files with 13 additions and 13 deletions

View File

@ -121,16 +121,16 @@ trait AppendScopeChoiceTypeTrait
$form = $event->getForm();
$form->add(
$builder
->create(
$name,
ChoiceType::class,
[
'choices' => array_combine(array_values($choices), array_keys($choices)),
'auto_initialize' => false,
]
)
->addModelTransformer($dataTransformer)
->getForm()
->create(
$name,
ChoiceType::class,
[
'choices' => array_combine(array_values($choices), array_keys($choices)),
'auto_initialize' => false,
]
)
->addModelTransformer($dataTransformer)
->getForm()
);
}
);

View File

@ -294,9 +294,9 @@ class SingleTaskRepository extends EntityRepository
->add($qb->expr()->isNotNull('st.warningInterval'))
->add(
$qb->expr()->gt(
$qb->expr()->diff('st.endDate', 'st.warningInterval'),
':now'
)
$qb->expr()->diff('st.endDate', 'st.warningInterval'),
':now'
)
)
)
->add($qb->expr()->isNull('st.endDate'))