You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed we have a deleteWhere() on the model class. However the only way you can do an update() is by primary key, so it only makes sense to have an updater for batch changes.
updateWhere(array, array)
If i'm mistaken let me know, but as for the docs and the source code, doesn't appear to be a batch update method. I also know the builder includes the ->where()->update() however, that's not accessible from model, or at least not in the documentation. Thoughts?
And yeah you could use the save() method to accomplish most, but there is occasions where a simple updateWhere() could come in handy for quick updates across the table.
The text was updated successfully, but these errors were encountered:
Yeah was having a difficult time getting the same result with builder through the model, though I didn't experiment too much, was in rush mode and quickly went onto another solution to accomplish it. But seeing the delete function, figured there should be a similar one with update. but anyways, we can close this for now. Thanks!
I noticed we have a
deleteWhere()
on the model class. However the only way you can do anupdate()
is byprimary key
, so it only makes sense to have an updater for batch changes.updateWhere(array, array)
If i'm mistaken let me know, but as for the docs and the source code, doesn't appear to be a batch update method. I also know the builder includes the
->where()->update()
however, that's not accessible from model, or at least not in the documentation. Thoughts?And yeah you could use the
save()
method to accomplish most, but there is occasions where a simpleupdateWhere()
could come in handy for quick updates across the table.The text was updated successfully, but these errors were encountered: