Skip to content

Commit

Permalink
ActiveQuery::one() limiting database records yiisoft#58
Browse files Browse the repository at this point in the history
  • Loading branch information
uaoleg authored Oct 8, 2024
1 parent 3c75ff1 commit 07ca678
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/db/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ public function populate($rows)
*/
public function one($db = null)
{
$this->limit(1);

if ($this->emulateExecution) {
return false;
}
Expand Down

0 comments on commit 07ca678

Please sign in to comment.