@@ -137,7 +137,7 @@ class Order extends ActiveRecordCommon | |||
public function getProductOrder() | |||
{ | |||
return $this->hasMany(ProductOrder::className(), ['id_order' => 'id']) | |||
->orderBy(['product.order' => SORT_DESC]) | |||
->orderBy(['product.order' => SORT_ASC]) | |||
->joinWith('product'); | |||
} | |||