src/Sulu/Bundle/AudienceTargetingBundle/Controller/TargetGroupController.php
public function postAction(Request $request)
    {
        $targetGroup = $this->deserializeData($request->getContent());
        $targetGroup = $this->getTargetGroupRepository()->save($targetGroup);

        $this->getEntityManager()->flush();

        return $this->handleView($this->view($targetGroup));
    }
public function postAction(Request $request)
    {
        $targetGroup = $this->deserializeData($request->getContent());
        $targetGroup = $this->getTargetGroupRepository()->save($targetGroup);

        $this->getEntityManager()->flush();

        return $this->handleView($this->view($targetGroup));
    }
public function postAction ( Request $ request ) { $ targetGroup = $ this -> deserializeData ( $ request -> getContent ( ) ) ; $ targetGroup = $ this -> getTargetGroupRepository ( ) -> save ( $ targetGroup ) ; $ this -> getEntityManager ( ) -> flush ( ) ; return $ this -> handleView ( $ this -> view ( $ targetGroup ) ) ; }
Handle post request for target group.

@param Request $request

@return Response
Handle post request for target group .