M
M
morricone852017-05-23 00:51:14
Yii
morricone85, 2017-05-23 00:51:14

How to change data from SqlDataProvider Yii2 in controller?

Hello! It is necessary to process (change) the data received after the request to the database, which is stored in the SqlDataProvider in the controller . How can I do that?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Korobkov, 2017-05-23
@BorisKorobkov

$sqlDataProvider->getModels();

M
Mykola, 2017-05-23
@iSensetivity

I think you need to look towards afterFind() in the model

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question