Skip to content

Commit

Permalink
DOC Fix minor bug in SQLSelect docs
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Dec 19, 2023
1 parent 00ba6a0 commit d0c06bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/02_Developer_Guides/00_Model/08_SQL_Select.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $count = DB::query('SELECT COUNT(*) FROM "Member"')->value();

// Through SQLSelect abstraction layer.
$query = new SQLSelect();
$count = $query->setFrom('Member')->setSelect('COUNT(*)')->value();
$count = $query->setFrom('Member')->setSelect('COUNT(*)')->execute()->value();

// Through the ORM.
$count = Member::get()->count();
Expand Down

0 comments on commit d0c06bd

Please sign in to comment.