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.

преди 7 години
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. [['actif'], 'boolean'],
  25. [['credit'], 'double'],
  26. ];
  27. }
  28. /**
  29. * @inheritdoc
  30. */
  31. public function attributeLabels() {
  32. return [
  33. 'id_user' => 'Id User',
  34. 'id_etablissement' => 'Id Etablissement',
  35. ];
  36. }
  37. }