예제 #1
0
 public function listCategoriesAction()
 {
     $categories = $this->getDoctrine()->getRepository('ShopBundle:Category')->getFirstLevelCategories();
     return $this->render('ShopBundle:admin:category_list.html.twig', array('categories' => $categories, 'menuTypes' => ShopMenuType::map()));
 }
예제 #2
0
 public function getFullName()
 {
     $menuTypes = ShopMenuType::map();
     return "{$menuTypes[$this->getShopPart()]} - {$this->getName()}";
 }