diff --git a/src/Libraries/Database/Idiorm/Paginator.php b/src/Libraries/Database/Idiorm/Paginator.php index 15ee60e..c822fec 100644 --- a/src/Libraries/Database/Idiorm/Paginator.php +++ b/src/Libraries/Database/Idiorm/Paginator.php @@ -59,10 +59,13 @@ public function lastItem() } /** - * @return array|IdiormResultSet + * @return array */ public function data() { + if (!empty($this->data) && !is_array($this->data)){ + $this->data = $this->data->as_array(); + } return $this->data ?? []; } } \ No newline at end of file