|
- <?php
-
-
-
- namespace common\models;
-
- use Yii;
- use common\components\ActiveRecordCommon ;
-
-
- class UserUserGroup extends ActiveRecordCommon
- {
-
-
-
- public static function tableName()
- {
- return 'user_user_group';
- }
-
-
-
- public function rules()
- {
- return [
- [['id_user', 'id_user_group'], 'required'],
- [['id_user', 'id_user_group'], 'integer'],
- ];
- }
-
-
-
- public function attributeLabels()
- {
- return [
- 'id_user' => 'Utilisateur',
- 'id_user_group' => 'Groupe'
- ];
- }
-
- public function getPointSale()
- {
- return $this->hasOne(PointSale::className(), ['id' => 'id_point_sale']);
- }
-
-
-
- public static function defaultOptionsSearch() {
- return [
- 'with' => [],
- 'join_with' => [],
- 'orderby' => '',
- 'attribute_id_producer' => ''
- ] ;
- }
-
- }
|