Skip to content

Commit 963f20a

Browse files
added new function to task-execution repository
1 parent a45cae8 commit 963f20a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Entity/TaskExecutionRepository.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,22 @@ public function findPending(TaskInterface $task)
8989
}
9090
}
9191

92+
/**
93+
* {@inheritdoc}
94+
*/
95+
public function findByUuid($uuid)
96+
{
97+
try {
98+
return $this->createQueryBuilder('e')
99+
->where('e.uuid = :uuid')
100+
->setParameter('uuid', $uuid)
101+
->getQuery()
102+
->getSingleResult();
103+
} catch (NoResultException $e) {
104+
return;
105+
}
106+
}
107+
92108
/**
93109
* {@inheritdoc}
94110
*/

0 commit comments

Comments
 (0)