You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
777B

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