Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $articles = $this->Articles->find()
- ->matching('Tags', function (Query $query) {
- return $query->where(['Tags.name' => 'CakePHP'])
- ->andWare(['Tags.name' => 'ORM']);
- })
- ->distinct('Articles.id');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement