protected function getOrder($orderId)
    {
        if (null == $order = OrderQuery::create()->findPk($orderId)) {
            $this->getLog()->addError(
                $this->getTranslator()->trans("Unknown order ID:  %id", array('%id' => $orderId))
            );
        }

        return $order;
    }
protected function getOrder($orderId)
    {
        if (null == $order = OrderQuery::create()->findPk($orderId)) {
            $this->getLog()->addError(
                $this->getTranslator()->trans("Unknown order ID:  %id", array('%id' => $orderId))
            );
        }

        return $order;
    }
protected function getOrder ( $ orderId ) { if ( null == $ order = OrderQuery :: create ( ) -> findPk ( $ orderId ) ) { $ this -> getLog ( ) -> addError ( $ this -> getTranslator ( ) -> trans ( "Unknown order ID:  %id" , array ( '%id' => $ orderId ) ) ) ; } return $ order ; }
Get an order and issue a log message if not found.

@param $orderId
@return null|\Thelia\Model\Order
Get an order and issue a log message if not found .