Skip to content

Commit

Permalink
Fix mistakes in API docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 1, 2017
1 parent 167a993 commit c810807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ORM/Query.php
Expand Up @@ -495,7 +495,7 @@ public function matching($assoc, callable $builder = null)
* ->select(['total_articles' => $query->func()->count('Articles.id')])
* ->leftJoinWith('Articles')
* ->group(['Users.id'])
* ->setAutoFields(true);
* ->enableAutoFields(true);
* ```
*
* You can also customize the conditions passed to the LEFT JOIN:
Expand All @@ -508,7 +508,7 @@ public function matching($assoc, callable $builder = null)
* return $q->where(['Articles.votes >=' => 5]);
* })
* ->group(['Users.id'])
* ->setAutoFields(true);
* ->enableAutoFields(true);
* ```
*
* This will create the following SQL:
Expand Down

0 comments on commit c810807

Please sign in to comment.