Browse Source

[backend] Documents : ordre des produits

refactoring
Guillaume 4 years ago
parent
commit
166d4f9738
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/Order.php

+ 1
- 1
common/models/Order.php View File

@@ -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');
}


Loading…
Cancel
Save