|
- <?php
-
-
-
- namespace common\models;
-
- use Yii;
- use common\components\ActiveRecordCommon ;
-
-
- class UserPointSale extends ActiveRecordCommon
- {
-
-
-
- public static function tableName()
- {
- return 'user_point_sale';
- }
-
-
-
- public function rules()
- {
- return [
- [['id_point_sale', 'id_user'], 'required'],
- [['id_point_sale', 'id_user'], 'integer'],
- [['comment'], 'string'],
- ];
- }
-
-
-
- public function attributeLabels()
- {
- return [
- 'id_point_sale' => 'Point de vente',
- 'id_user' => 'Utilisateur',
- 'comment' => 'Commentaire'
- ];
- }
-
-
-
- public static function defaultOptionsSearch() {
- return [
- 'with' => [],
- 'join_with' => [],
- 'orderby' => '',
- 'attribute_id_producer' => ''
- ] ;
- }
-
- }
|