update task and schema module
This commit is contained in:
@@ -32,4 +32,15 @@ class TaskSchemaRepository extends ServiceEntityRepository
|
||||
->getQuery()
|
||||
->getResult();
|
||||
}
|
||||
|
||||
/** @return list<TaskSchema> */
|
||||
public function findExpired(): array
|
||||
{
|
||||
return $this->createQueryBuilder('s')
|
||||
->andWhere('s.end IS NOT NULL')
|
||||
->andWhere('s.end < :today')
|
||||
->setParameter('today', new \DateTimeImmutable('today'))
|
||||
->getQuery()
|
||||
->getResult();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user