/** * {@inheritdoc} */ public function persist(TaskInterface $task) { $entity = $this->taskRepository->findByUuid($task->getUuid()); $this->setTask($entity, $task); $this->entityManager->persist($entity); $this->entityManager->flush(); }
/** * {@inheritdoc} */ public function findByTask(TaskInterface $task) { return $this->findByTaskUuid($task->getUuid()); }
/** * {@inheritdoc} */ public function getUuid() { return $this->task->getUuid(); }