Service/TaskQueueService.php
private function updateTaskLog(WorkPackage $task, $log)
    {
        if ($this->databaseDisabled) {
            return;
        }
        $taskEntity = $task->getTaskEntity();
        if ($taskEntity instanceof Task) {
            $taskEntity->setLog($log);
            //make sure it is stored...
            $this->entityManager->flush($taskEntity);
        } else {
            throw new TaskQueueServiceException("Entity is not of type Task");
        }
    }
private function updateTaskLog(WorkPackage $task, $log)
    {
        if ($this->databaseDisabled) {
            return;
        }
        $taskEntity = $task->getTaskEntity();
        if ($taskEntity instanceof Task) {
            $taskEntity->setLog($log);
            //make sure it is stored...
            $this->entityManager->flush($taskEntity);
        } else {
            throw new TaskQueueServiceException("Entity is not of type Task");
        }
    }
private function updateTaskLog ( WorkPackage $ task , $ log ) { if ( $ this -> databaseDisabled ) { return ; } $ taskEntity = $ task -> getTaskEntity ( ) ; if ( $ taskEntity instanceof Task ) { $ taskEntity -> setLog ( $ log ) ; //make sure it is stored... $ this -> entityManager -> flush ( $ taskEntity ) ; } else { throw new TaskQueueServiceException ( "Entity is not of type Task" ) ; } }
Writes the log to the Task entity

@param WorkPackage $task
@param string      $log
@return void
@throws TaskQueueServiceException
Writes the log to the Task entity