public function setStatusHelper($statusCode)
    {
        if (null !== $ordeStatus = OrderStatusQuery::create()->findOneByCode($statusCode)) {
            $this->setOrderStatus($ordeStatus)->save();
        }
    }
public function setStatusHelper($statusCode)
    {
        if (null !== $ordeStatus = OrderStatusQuery::create()->findOneByCode($statusCode)) {
            $this->setOrderStatus($ordeStatus)->save();
        }
    }
public function setStatusHelper ( $ statusCode ) { if ( null !== $ ordeStatus = OrderStatusQuery :: create ( ) -> findOneByCode ( $ statusCode ) ) { $ this -> setOrderStatus ( $ ordeStatus ) -> save ( ) ; } }
Set the status of the current order to the provided status

@param string $statusCode the status code, one of OrderStatus::CODE_xxx constants.
@throws \Propel\Runtime\Exception\PropelException
Set the status of the current order to the provided status