|
- <?php
-
-
-
- namespace domain\User\UserGroup;
-
- use common\components\ActiveRecordCommon;
-
-
- class UserGroup extends ActiveRecordCommon
- {
-
-
-
- public static function tableName()
- {
- return 'user_group';
- }
-
-
-
- public function rules()
- {
- return [
- [['name', 'id_producer'], 'required'],
- [['name'], 'string'],
- [['id_producer'], 'integer'],
- ];
- }
-
-
-
- public function attributeLabels()
- {
- return [
- 'name' => 'Nom',
- ];
- }
- }
|