Permalink
Browse files

Merge pull request #38 from phofmann-trust/patch-1

Fixed example code for nested queries
  • Loading branch information...
2 parents b98db07 + 81ae61b commit 4df18d949087f6ab2826bc303463382148c3c440 @bcrowe bcrowe committed Apr 15, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -99,7 +99,7 @@ $users = $collection->find(function ($query) {
$query->where(function ($query) {
$query->where('name', 'Josh')
->orWhere('surname', 'Doe');
- })->orWhere(function () {
+ })->orWhere(function ($query) {
$query->where('name', 'Frank')
->where('surname', 'de Jonge');
});

0 comments on commit 4df18d9

Please sign in to comment.