Welcome Guest, Not a member yet? Register   Sign In
query builder updateBatch behavior on 4.6.x
#1

I come from 4.1.9 (was stuck in PHP7.3 for a long time) and upgrade to 4.6.1 and i notice a change in updateBatch behavior :

PHP Code:
model('Foo')->builder()->updateBatch([
[
'id' => ,
'content' => 'bar',
],
[
'id' => ,
'content' => 'bim',
'plus' => 'tac',
],
],
'id') ; 

that updateBatch with array structure differences worked in 4.1.9 and does not work in 4.6.x

Is that an expected behavior or is it a bug that will be fixed ?

thanks for your attention
Reply
#2

Had the same problem a while back. It's apparently a feature.
Reply
#3

@grimpirate thank you for reply Smile
Reply




Theme © iAndrew 2016 - Forum software by © MyBB