Skip to content

Example update #38

@jorbascrumps

Description

@jorbascrumps

I'm not sure how updating is suppose to work. Normally to update a model with Eloquent you would do something like:

Customer::where('id', 1)->update([
    // ...
]);

However, this doesn't appear to be working and results in the following error:

{
    "message": "Call to a member function update() on array",
    "exception": "Exception",
    "file": "/vendor/cristal/php-api-wrapper/src/Builder.php",
    "line": 241
}

Is there a correct way to update or is this a bug?

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