Browse Source

Refactoring/traduction modèle PointVenteUser > PointSaleUser

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

+ 20
- 6
common/models/PointSaleUser.php View File

@@ -63,9 +63,9 @@ class PointSaleUser extends \yii\db\ActiveRecord
public function rules()
{
return [
[['id_point_vente', 'id_user'], 'required'],
[['id_point_vente', 'id_user'], 'integer'],
[['commentaire'], 'string'],
[['id_point_sale', 'id_user'], 'required'],
[['id_point_sale', 'id_user'], 'integer'],
[['comment'], 'string'],
];
}

@@ -75,10 +75,24 @@ class PointSaleUser extends \yii\db\ActiveRecord
public function attributeLabels()
{
return [
'id_point_vente' => 'Id Point Vente',
'id_user' => 'Id User',
'commentaire' => 'Commentaire'
'id_point_sale' => 'Point de vente',
'id_user' => 'Utilisateur',
'comment' => 'Commentaire'
];
}
/**
* Retourne les options de base nécessaires à la fonction de recherche.
*
* @return array
*/
public static function defaultOptionsSearch() {
return [
'with' => [],
'join_with' => [],
'orderby' => '',
'attribute_id_producer' => ''
] ;
}

}

Loading…
Cancel
Save