public function add_pickup_windowAction(Request $request)
    {
        $id = $request->get('id');

        $hub    = $this->getRepo('Profile')->find($id);
        $seller = $this->getUser()->getCurrentProfile();

        if (!$hub)
        {
            throw $this->createNotFoundException('No hub found for id '.$id);
        }

        $sellerHubRef = $this->getRepo('SellerHubRef')->findOneBySellerAndHub($seller, $hub);

        if (!$sellerHubRef)
        {
            throw $this->createNotFoundException('No SellerHubRef found for Seller/Hub combination');
        }

        $pickupWindow = new SellerHubPickupWindow();
        $pickupWindow->setSellerHubRef($sellerHubRef);

        $form = $this->createForm(new SellerHubPickupWindowType(), $pickupWindow);

        if ($request->getMethod() == 'POST')
        {
            $form->bindRequest($request);

            if ($form->isValid())
            {
                $em = $this->getDoctrine()->getEntityManager();
                $em->persist($pickupWindow);
                $em->flush();

                return $this->redirect($this->generateUrl('Seller_hub_show', array(
                    'id' => $hub->getId(),
                )));
            }
        }

        return $this->render('HarvestCloudCoreBundle:Seller/SellerHubRef:add_pickup_window.html.twig', array(
            'hub'  => $hub,
            'form' => $form->createView(),
        ));
    }