Controller/AttributeController.php
/**
     * Delete an product attribute with the given id.
     *
     * @param int $id the attribute id
     *
     * @return Response
     */
Delete an product attribute with the given id.
@param int $id the attribute id

@return Response
Delete an product attribute with the given id . @param int $id the attribute id @return Response
public function deleteAction($id)
    {
        try {
            $this->getManager()->delete($id, $this->getUser()->getId());
            $view = $this->view($id, 204);
        } catch (AttributeNotFoundException $exc) {
            $exception = new EntityNotFoundException($exc->getEntityName(), $exc->getId());
            $view = $this->view($exception->toArray(), 404);
        }
        return $this->handleView($view);
    }
public function deleteAction ( $ id ) { try { $ this -> getManager ( ) -> delete ( $ id , $ this -> getUser ( ) -> getId ( ) ) ; $ view = $ this -> view ( $ id , 204 ) ; } catch ( AttributeNotFoundException $ exc ) { $ exception = new EntityNotFoundException ( $ exc -> getEntityName ( ) , $ exc -> getId ( ) ) ; $ view = $ this -> view ( $ exception -> toArray ( ) , 404 ) ; } return $ this -> handleView ( $ view ) ; }
Delete an product attribute with the given id.
Delete an product attribute with the given id .