|
|
@@ -66,9 +66,9 @@ class ProductSubscription extends \yii\db\ActiveRecord |
|
|
|
public function rules() |
|
|
|
{ |
|
|
|
return [ |
|
|
|
[['id_commande_auto', 'id_produit'], 'required'], |
|
|
|
[['id_commande_auto', 'id_produit'], 'integer'], |
|
|
|
[['quantite'], 'number'], |
|
|
|
[['id_subscription', 'id_product'], 'required'], |
|
|
|
[['id_subscription', 'id_product'], 'integer'], |
|
|
|
[['quantity'], 'number'], |
|
|
|
]; |
|
|
|
} |
|
|
|
|
|
|
@@ -79,9 +79,9 @@ class ProductSubscription extends \yii\db\ActiveRecord |
|
|
|
{ |
|
|
|
return [ |
|
|
|
'id' => 'ID', |
|
|
|
'id_commande_auto' => 'Id Commande Auto', |
|
|
|
'id_produit' => 'Id Produit', |
|
|
|
'quantite' => 'Quantite', |
|
|
|
'id_subscription' => 'Abonnement', |
|
|
|
'id_product' => 'Produit', |
|
|
|
'quantity' => 'Quantité', |
|
|
|
]; |
|
|
|
} |
|
|
|
|