Browse Source

Refactoring/traduction modèle CommandeautoProduit > ProductSubscription

refactoring
Guillaume Bourgeois 6 years ago
parent
commit
f674ffaec7
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      common/models/ProductSubscription.php

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

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


Loading…
Cancel
Save