Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. db linkam bottomWidth:
  2. a:3:{i:0;i:60;i:1;i:73;i:2;i:45;}
  3.  
  4.  
  5. public function findCompatibleLinks($l, $d)
  6. {
  7. $query = $this->createQueryBuilder('l')
  8. ->select('l')
  9. ->where('l.isDeleted = false')
  10. ->andWhere('l.isPublished = true')
  11. ->andWhere('l.bottomWidth LIKE :width')
  12. ->andWhere('l.bottomDia LIKE :dia')
  13. ->setParameter('width', '%'.$l.'%')
  14. ->setParameter('dia', '%'.$d.'%')
  15. ->getQuery();
  16. return $query->getResult();
  17. }
  18.  
  19. vajag nevis kur bottomWidth ir tikai ==$l, bet =>$l un <$l+5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement