The Zend\Db\ResultSet\HydratingResultSet
has a toArray
method. So you can do this to get a multi-dimension array of the results instead of a result set:
public function fetchById()
{
$select = $this->getSelect()->where(array('id' => $Id));
$arrayResults = $this->select($select)->toArray()
return $arrayResults;
}