Commit 145e0999 authored by Julien Fastré's avatar Julien Fastré

[repository] add 'equal' to "today is after end|warning|start date"

parent c4248f4e
......@@ -181,7 +181,7 @@ class SingleTaskRepository extends \Doctrine\ORM\EntityRepository
if ($negative === false) {
return $qb->expr()->andX()
->add($qb->expr()->isNotNull('st.endDate'))
->add($qb->expr()->lt('st.endDate', ':now'))
->add($qb->expr()->lte('st.endDate', ':now'))
;
} else {
return $qb->expr()->orX()
......@@ -199,7 +199,7 @@ class SingleTaskRepository extends \Doctrine\ORM\EntityRepository
{
if ($negative === false) {
return $qb->expr()->andX()
->add($qb->expr()->lt(
->add($qb->expr()->lte(
$qb->expr()->diff('st.endDate', 'st.warningInterval'), ':now'
)
);
......@@ -225,7 +225,7 @@ class SingleTaskRepository extends \Doctrine\ORM\EntityRepository
{
if ($negative === false) {
return $qb->expr()->orX()
->add($qb->expr()->lt('st.startDate', ':now'))
->add($qb->expr()->lte('st.startDate', ':now'))
->add($qb->expr()->isNull('st.startDate'))
;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment