return array - list of active records and active record is still an object. In this case i just need simple multidimensional array, not array of objects.
I can return array but it’s interessting is there any way to return simple array by calling find or findAll from model, because it’s very convenient and using getCommandBuilder i need to write table name and queries.
I’m asking this because of php memory leaks when retrieving a lot of objects instead of arrays.
And I don’t need a 90 % of object data, because I used this data in foreach cycle not in Data grid where you must to provide activedataprovider.
I know well about select criteria and findAll method.
Exactly, I dont need an object, instead I want an array
But ok, I have found in other blogs that is nothing to do, you can use query or get an objects list with find or findAll and than cache results if you want to reduce memory usage.
I understand, I’ll use active record, just reduse memory by selecting not all fields, using cache. I always can use CHtml::listData for an array, but any way thanks for answers, I got it