Skip to content

Commit 8d80467

Browse files
added find-by-task-uuid function (#30)
1 parent aa6f67c commit 8d80467

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Entity/TaskExecutionRepository.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,19 @@ public function findPending(TaskInterface $task)
9393
* {@inheritdoc}
9494
*/
9595
public function findByTask(TaskInterface $task)
96+
{
97+
return $this->findByTaskUuid($task->getUuid());
98+
}
99+
100+
/**
101+
* {@inheritdoc}
102+
*/
103+
public function findByTaskUuid($taskUuid)
96104
{
97105
return $this->createQueryBuilder('e')
98106
->innerJoin('e.task', 't')
99107
->where('t.uuid = :uuid')
100-
->setParameter('uuid', $task->getUuid())
108+
->setParameter('uuid', $taskUuid)
101109
->getQuery()
102110
->getResult();
103111
}

0 commit comments

Comments
 (0)