コード例 #1
0
 /**
  * Remove an association type
  *
  * @param AssociationType $associationType
  *
  * @AclAncestor("pim_enrich_association_type_remove")
  * @return Response|RedirectResponse
  */
 public function removeAction(AssociationType $associationType)
 {
     $this->assocTypeManager->remove($associationType);
     if ($this->getRequest()->isXmlHttpRequest()) {
         return new Response('', 204);
     } else {
         return $this->redirectToRoute('pim_enrich_association_type_index');
     }
 }