Migrate method findCompletedByType() to Doctrine
[MAILPOET-2996]
This commit is contained in:
@@ -97,6 +97,10 @@ class ScheduledTasksRepository extends Repository {
|
||||
return $this->findByTypeAndStatus($type, null, $limit);
|
||||
}
|
||||
|
||||
public function findCompletedByType($type, $limit = null) {
|
||||
return $this->findByTypeAndStatus($type, ScheduledTaskEntity::STATUS_COMPLETED, $limit);
|
||||
}
|
||||
|
||||
protected function findByTypeAndStatus($type, $status, $limit = null, $future = false) {
|
||||
$queryBuilder = $this->doctrineRepository->createQueryBuilder('st')
|
||||
->select('st')
|
||||
|
Reference in New Issue
Block a user