Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

45 rindas
849B

  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. }