Browse Source

Refactoring/traduction modèle CommandeProduit > ProductOrder

dev
Guillaume Bourgeois 6 years ago
parent
commit
d5e333bb58
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      common/models/ProductOrder.php

+ 6
- 6
common/models/ProductOrder.php View File

@@ -74,9 +74,9 @@ class ProductOrder extends \yii\db\ActiveRecord
public function rules()
{
return [
[['id_commande', 'id_produit', 'quantite'], 'required'],
[['id_commande', 'id_produit'], 'integer'],
[['quantite'], 'number', 'min' => 0]
[['id_order', 'id_product', 'quantity'], 'required'],
[['id_order', 'id_product'], 'integer'],
[['quantity'], 'number', 'min' => 0]
];
}

@@ -87,9 +87,9 @@ class ProductOrder extends \yii\db\ActiveRecord
{
return [
'id' => 'ID',
'id_commande' => 'Id Commande',
'id_produit' => 'Id Produit',
'quantite' => 'Quantite',
'id_order' => 'Commande',
'id_product' => 'Product',
'quantity' => 'Quantité',
];
}


Loading…
Cancel
Save