L
L
Leonid Korsakov2014-10-26 17:50:51
Yii
Leonid Korsakov, 2014-10-26 17:50:51

Yii2 vs Repository pattern?

Is there anything in yii2 that allows you to use repository technology when working with orm and models out of the box? And how developed is this idea in general? Can eat more productive methods?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-10-26
Protko @Fesor

In ActiveRecord "model" is combined with repositories. Or you can just write your own service that will deal with this matter. The main thing in the repository is that the code that uses it has no idea where the data is stored.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question