Controller/Order/DefaultController.php
public function mark_ready_for_dispatchAction(Order $order)
    {
        $order->markReadyForDispatchBySeller();

        $em = $this->getDoctrine()->getEntityManager();
        $em->persist($order);
        $em->flush();

        return $this->redirect($this->generateUrl('Order_show', array(
            'id' => $order->getNumberForPath()
        )));
    }
public function mark_ready_for_dispatchAction(Order $order)
    {
        $order->markReadyForDispatchBySeller();

        $em = $this->getDoctrine()->getEntityManager();
        $em->persist($order);
        $em->flush();

        return $this->redirect($this->generateUrl('Order_show', array(
            'id' => $order->getNumberForPath()
        )));
    }
public function mark_ready_for_dispatchAction ( Order $ order ) { $ order -> markReadyForDispatchBySeller ( ) ; $ em = $ this -> getDoctrine ( ) -> getEntityManager ( ) ; $ em -> persist ( $ order ) ; $ em -> flush ( ) ; return $ this -> redirect ( $ this -> generateUrl ( 'Order_show' , array ( 'id' => $ order -> getNumberForPath ( ) ) ) ) ; }
mark ready for dispatch

@author Tom Haskins-Vaughan <tom@harvestcloud.com>
@since  2012-05-14

@Route("/{id}/mark-ready-for-dispatch")
@ParamConverter("order", class="HarvestCloudCoreBundle:Order")

@param  Order  $order
mark ready for dispatch