We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa6f67c commit 8d80467Copy full SHA for 8d80467
src/Entity/TaskExecutionRepository.php
@@ -93,11 +93,19 @@ public function findPending(TaskInterface $task)
93
* {@inheritdoc}
94
*/
95
public function findByTask(TaskInterface $task)
96
+ {
97
+ return $this->findByTaskUuid($task->getUuid());
98
+ }
99
+
100
+ /**
101
+ * {@inheritdoc}
102
+ */
103
+ public function findByTaskUuid($taskUuid)
104
{
105
return $this->createQueryBuilder('e')
106
->innerJoin('e.task', 't')
107
->where('t.uuid = :uuid')
- ->setParameter('uuid', $task->getUuid())
108
+ ->setParameter('uuid', $taskUuid)
109
->getQuery()
110
->getResult();
111
}
0 commit comments