I am implementing
hook_commerce_cart_line_item_refresh(). It will be receiving line item and entity metadata wrapper for the commerce order.
How can I get user id of order from its metadata wrapper without loading user object like this
$uid = $order_wrapper->owner->value()->uid
With above line it will be loading user object. I would like to avoid loading user object and simply take uid directly.
Following line does not work:
$uid = $order_wrapper->uid;
Or should I think of loading order object? As it might be already in static cache.