A
A
Alexey Zorin2015-02-15 19:56:19
Yii
Alexey Zorin, 2015-02-15 19:56:19

Yii. Whether it is possible to make multiple change of records by standard means?

Hello! I have been programming in Yii for more than a year, and then I realize that I am doing something wrong.
How to write change of many records??? Of course, most often the user and the administrator work with the same record in the table, but still ..
Well, suppose I need to selectively ban users in the standard User table by checking the checkbox and pressing the "apply" button. But the essence is not in this, but in the approach itself :) chyadnt?
UPD: Yii 1.15

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2015-02-16
@newbie67

www.yiiframework.com/doc/guide/1.1/en/database.ar#...
updateAll
deleteAll

S
Sergey, 2015-02-15
@gangstarcj

Execute multiple SQL queries at once or in a loop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question