SessionLog.php 961 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace app\models\entity;
  3. use Yii;
  4. /**
  5. * This is the model class for table "so_session_log".
  6. *
  7. * @property int $id
  8. * @property int $id_session
  9. * @property string $description
  10. */
  11. class SessionLog extends \yii\db\ActiveRecord
  12. {
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public static function tableName()
  17. {
  18. return 'so_session_log';
  19. }
  20. public static function getDb()
  21. {
  22. return \Yii::$app->slave_db;
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['description'], 'required'],
  31. [['id_session'], 'integer'],
  32. [['description'], 'string'],
  33. ];
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => 'ID',
  42. 'id_session' => 'Id Session',
  43. 'description' => 'Description',
  44. ];
  45. }
  46. }