Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($form->isValid()) {
- $id || $em->persist($category);
- $em->flush();
- $em->commit();
- $this->get('session')->setFlash('notice', $this->trans('changes.saved'));
- $url = $id ?
- $request->getUri() :
- $this->generateUrl('blog_admin_category_edit', array(
- 'id' => $category->getId()
- ));
- return $this->redirect($url);
- }
Add Comment
Please, Sign In to add comment