Answer the question
In order to leave comments, you need to log in
How to add multiple records from an array to a table at once in Yii2?
There is an array:
skills = ['1', '2', '3', '4', '5']
And a variable:
user_id = 1
Is it possible in Yii2 to add multiple records to a table at once?
Without this feature, you will have to run through the array and add data one at a time.
Table
------------
| user_id |
|-----------
| skill |
------------
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question