Skip to content

Commit

Permalink
modify getAll method
Browse files Browse the repository at this point in the history
  • Loading branch information
Link1515 committed Mar 27, 2024
1 parent 1e672d3 commit 53a0d0f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/ORM/ORM.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,7 @@ public static function getAllForTable($tableName, $columns = null, $options = []

$result = $stmt->fetchAll();

$count = self::getCountForTable($tableName);

return [
'data' => $result,
'page' => $page,
'perPage' => $perPage,
'total' => $count
];
return $result;
}

/**
Expand Down

0 comments on commit 53a0d0f

Please sign in to comment.