Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. public function getBlogsByDomain($domain, $limit = 10)
  2. {
  3. $q = $this->createQuery('d')
  4. ->leftJoin("d.Domain as dom")
  5. ->where("dom.code LIKE ?","$domain%")
  6. ->limit($limit);
  7.  
  8. return $q->execute();
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement