Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example update #38

Open
jorbascrumps opened this issue May 11, 2022 · 0 comments
Open

Example update #38

jorbascrumps opened this issue May 11, 2022 · 0 comments

Comments

@jorbascrumps
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant