M
M
Mikhail Shatilov2018-06-23 21:10:31
PHP
Mikhail Shatilov, 2018-06-23 21:10:31

How to select "total" elements in ddd?

The first implementation of the repositories returned an array of elements to getList() and it worked. Now the understanding has come that pagination cannot be done this way.
I think to convert the array to a collection with an iterator in which there will be a "totalCount" parameter, well, you understand.
How is this done correctly in ddd?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question