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

methods related to updates aren't working #7

Open
MPesic381 opened this issue Jun 19, 2023 · 0 comments
Open

methods related to updates aren't working #7

MPesic381 opened this issue Jun 19, 2023 · 0 comments

Comments

@MPesic381
Copy link

as far as I noticed when you want to update using update or updateOrInsert the builder throws an error
source()->from('countries')->update([
'name' => 'Serbiasss',
'code' => 'RS',
'is_active' => 1
]);
source()->from('countries')->where('name', 'Serbias')->update([
'name' => 'Serbiasss12',
'code' => 'RS',
'is_active' => 1
]);

The problem is caused by mismatching between names of a placeholders and bonded parameters

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