Created
September 30, 2017 22:45
-
-
Save sdevore/d4e8eafa314d6643b8a01566da8e18fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$query = $articles->find() | |
->where(['title LIKE' => '%First%']) | |
->andWhere(function ($exp) { | |
return $exp->or_([ | |
'author_id' => 2, | |
'is_highlighted' => true | |
]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment