public function offsetGet($offset) { $this->load(); if ($this->rowset[$offset] instanceof WaxModelProxy) { return $this->rowset[$offset]->get(); } else { return parent::offsetGet($offset); } }