Hello, I have a Model with a hasMany relation, I have an instance of such record and need to get the related objects as an array with a subset of columns. Since this relation is a type of Phalcon\Mvc\Model\Resultset\Simple I can obtain the result wanted invoking toArray, unfortunately this method has not the capability of Model::toArray (it returns a subset of columns passed as array in the first parameter), how can I do to obtain such result? do a custom foreach and invoke toArray on each model and push to an array or is there another way?
This appears to me as an inconsistency between two methods where Resultset::toArray should be a natural 'extension' of Model::toArray.
thx.