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
Both methods for updating mutiple columns are printing this query; UPDATE questions SET is_allowed = 1, updated_at = '2020-10-13 12:17:50' WHERE questions.id IN (1)
And:
UPDATE questions SET is_allowed = 1, updated_at = '2020-10-13 12:17:50' WHERE id = '1'
Expected query should be: UPDATE questions SET is_allowed = 1, is_dismissed = 0, updated_at = '2020-10-13 12:17:50' WHERE id = '1'
Context
OS: Linux
Web server Apache 2
PHP version: PHP 7.4.6
The text was updated successfully, but these errors were encountered:
andresyebenes
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Oct 13, 2020
Describe the bug
When updating a Model with more than 1 array values, it only updates the first value (for first column) in the database.
CodeIgniter 4 version
CodeIgniter 4.0.4
Affected module(s)
CodeIgniter\Model
Expected behavior, and steps to reproduce if appropriate
Code used from the Controller:
And:
Both methods for updating mutiple columns are printing this query;
UPDATE questions SET is_allowed = 1, updated_at = '2020-10-13 12:17:50' WHERE questions.id IN (1)
And:
UPDATE questions SET is_allowed = 1, updated_at = '2020-10-13 12:17:50' WHERE id = '1'
Expected query should be:
UPDATE questions SET is_allowed = 1, is_dismissed = 0, updated_at = '2020-10-13 12:17:50' WHERE id = '1'
Context
The text was updated successfully, but these errors were encountered: