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.

49 satır
985B

  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. * @property boolean $actif
  10. * @property boolean $favoris
  11. */
  12. class UserEtablissement extends \yii\db\ActiveRecord {
  13. /**
  14. * @inheritdoc
  15. */
  16. public static function tableName() {
  17. return 'user_etablissement';
  18. }
  19. /**
  20. * @inheritdoc
  21. */
  22. public function rules() {
  23. return [
  24. [['id_user', 'id_etablissement'], 'required'],
  25. [['id_user', 'id_etablissement'], 'integer'],
  26. [['actif','favoris'], 'boolean'],
  27. [['credit'], 'double'],
  28. ];
  29. }
  30. /**
  31. * @inheritdoc
  32. */
  33. public function attributeLabels() {
  34. return [
  35. 'id_user' => 'Id User',
  36. 'id_etablissement' => 'Id Etablissement',
  37. 'actif' => 'Actif',
  38. 'favoris' => 'Favoris',
  39. ];
  40. }
  41. }