Permalink
Browse files

Fixed example code for nested queries

  • Loading branch information...
1 parent b98db07 commit 81ae61b8126e5913e1667210879dfced0167d4b6 phofmann-trust 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 81ae61b

Please sign in to comment.