Skip to content

Commit

Permalink
Limit table select query to single result
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzylka committed Jan 13, 2024
1 parent 813b257 commit 9f641d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Trait/TableSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public function find(?array $condition = null, ?array $columns = null, ?string $
trim(implode(' ', $this->prepareBindData())),
$condition ? (new Where())->getPrepareConditions($condition) : null,
null,
$orderBy
$orderBy,
1
);

DatabaseManager::setLastSql($sql);
Expand Down

0 comments on commit 9f641d7

Please sign in to comment.