Skip to content

Commit bfd952c

Browse files
authored
Merge pull request #7576 from kenjis/fix-docs-query_builder-sample
docs: fix incorrect comments in query_builder
2 parents 95be341 + 8ebbc9e commit bfd952c

File tree

1 file changed

+2
-2
lines changed
  • user_guide_src/source/database/query_builder

1 file changed

+2
-2
lines changed

user_guide_src/source/database/query_builder/098.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
// Note that the second parameter of the ``get_compiled_select`` method is false
3+
// Note that the parameter of the `getCompiledSelect()` method is false
44
$sql = $builder->select(['field1', 'field2'])
55
->where('field3', 5)
66
->getCompiledSelect(false);
@@ -13,5 +13,5 @@
1313
$data = $builder->get()->getResultArray();
1414
/*
1515
* Would execute and return an array of results of the following query:
16-
* SELECT field1, field1 from mytable where field3 = 5;
16+
* SELECT field1, field2 FROM mytable WHERE field3 = 5;
1717
*/

0 commit comments

Comments
 (0)