Welcome Guest, Not a member yet? Register   Sign In
$model->update([], ['column' => NULL]) set the whole table column to null
#1

Hello,

PHP Code:
$model model('myModel');

$model->update([], ['column' => NULL]); 

If the first argument is an empty array, the entire table is affected, is it the normal behavior ?

CI 4.2.6
Reply


Messages In This Thread
$model->update([], ['column' => NULL]) set the whole table column to null - by eelisland - 12-06-2022, 02:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB