/** * @Route("/create/{id}", name="orob2b_catalog_category_create", requirements={"id"="\d+"}) * @Template("OroB2BCatalogBundle:Category:update.html.twig") * @Acl( * id="orob2b_catalog_category_create", * type="entity", * class="OroB2BCatalogBundle:Category", * permission="CREATE" * ) * @param Category $parentCategory * @return array|RedirectResponse */ public function createAction(Category $parentCategory) { $category = new Category(); $category->setParentCategory($parentCategory); return $this->update($category); }