src/Model/ResultSet.php
public function toObjectArray() : array
    {
        if ($this->isEmpty()) {
            return [];
        }

        $skeleton = $this->_model;

        return array_map(function ($entry) use ($skeleton) {
            return Model::cloneResult($skeleton, $entry);
        }, $this->toArray());
    }
public function toObjectArray() : array
    {
        if ($this->isEmpty()) {
            return [];
        }

        $skeleton = $this->_model;

        return array_map(function ($entry) use ($skeleton) {
            return Model::cloneResult($skeleton, $entry);
        }, $this->toArray());
    }
public function toObjectArray ( ) : array { if ( $ this -> isEmpty ( ) ) { return [ ] ; } $ skeleton = $ this -> _model ; return array_map ( function ( $ entry ) use ( $ skeleton ) { return Model :: cloneResult ( $ skeleton , $ entry ) ; } , $ this -> toArray ( ) ) ; }
Returns the ResultSet as an array containg instances of each entry original Model

@return array
Returns the ResultSet as an array containg instances of each entry original Model