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