T
T
tincap2015-08-16 19:30:42
Yii
tincap, 2015-08-16 19:30:42

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

1 answer(s)
V
vyachin, 2015-08-16
@tincap

https://github.com/yiisoft/yii2/blob/master/framew...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question