Skip to content

Task has task_uuid field which is not assigne to Task::$uuid #149

@beberlei

Description

@beberlei

There is mapping code necessary from the task_uuid field of the list payload, to get correctly filled Task instances when calling TAsk::all.

I added this code to get it working, then destroy() worked:

    public function __construct(array $attr = [], ?ClientInterface $client = null)
    {
        if (isset($attr['task_uuid'])) {
            $attr['uuid'] = $attr['task_uuid'];
        }
        parent::__construct($attr);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions