daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Nov 14th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $articles = $this->Articles->find()
  3.     ->matching('Tags', function (Query $query) {
  4.         return $query->where(['Tags.name LIKE' => 'CakePHP%'])
  5.         ->andWare(['Tags.name LIKE' => 'Chapter-%']);
  6.     })
  7.     ->distinct('Articles.id');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top