Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function findAllCategoriesBySupermarket($supermarket)
- {
- return $this->getEntityManager()
- ->createQuery(
- "SELECT p.supermarketId, c.categoryName, c.categorySlug
- FROM AppBundle:Product p
- JOIN AppBundle:Category c
- WHERE p.supermarketId = $supermarket"
- )
- ->getResult();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement