|
|
@@ -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é', |
|
|
|
]; |
|
|
|
} |
|
|
|
|