您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

45 行
844B

  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "point_vente_user".
  6. *
  7. * @property integer $id_point_vente
  8. * @property integer $id_user
  9. */
  10. class PointVenteUser extends \yii\db\ActiveRecord {
  11. /**
  12. * @inheritdoc
  13. */
  14. public static function tableName() {
  15. return 'point_vente_user';
  16. }
  17. /**
  18. * @inheritdoc
  19. */
  20. public function rules() {
  21. return [
  22. [['id_point_vente', 'id_user'], 'required'],
  23. [['id_point_vente', 'id_user'], 'integer'],
  24. [['commentaire'], 'string'],
  25. ];
  26. }
  27. /**
  28. * @inheritdoc
  29. */
  30. public function attributeLabels() {
  31. return [
  32. 'id_point_vente' => 'Id Point Vente',
  33. 'id_user' => 'Id User',
  34. 'commentaire' => 'Commentaire'
  35. ];
  36. }
  37. }