Skip to content

BelongTo relation generates single object for PATCH/POST but it expects an array #12

Description

@bbrala

HasMany::make('answers', 'answers')->type('concession-answers'),

results in

{
  "data": {
    "type": "concession-answers",
    "id": "7"
  }
}

but should be

{
  "data": [{
    "type": "concession-answers",
    "id": "7"
  }]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions