تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1674 أدوات العرض

in my enterprise DB when I tried to update one field in the model which takes array values. it will remove old values from the array and enter only the left one. for example, I have the following old values.

Array
(
[lang] => en_US
[category_id] => Array
(
[0] => 5
[1] => 30
)

)

now, I want to add something in category_id so I am trying to update the record with the following.

Array
(
[lang] => en_US
[category_id] => Array
(
[0] => 5
[1] => 30
[2] => 22
[3] => 28
[4] => 18
)

)

so, I have enter 22, 28 and 18 in category_id. but when I perform this operation it will not display any error but the category_id has only 22, 28 and 18 values. it will remove 5 and 30 which is my old value.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 23
1288
0
يوليو 21
4405
1
مارس 21
3972
3
يناير 25
2254
0
مارس 23
113