AsusgProject.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace app\models\entity;
  3. /**
  4. * This is the model class for table "asusg_task".
  5. *
  6. * @property int $id
  7. * @property int $loco_serie_id [int(10) unsigned]
  8. * @property int $repair_type [int(10) unsigned]
  9. * @property int $loco_number [int(10) unsigned]
  10. * @property int $section_a [int(10) unsigned]
  11. * @property int $section_b [int(10) unsigned]
  12. * @property int $section_c [int(10) unsigned]
  13. * @property string $created [datetime]
  14. * @property string $started [datetime]
  15. * @property string $finished [datetime]
  16. * @property string $text [varchar(45)]
  17. * @property int $status [int(10) unsigned]
  18. * @property int $asusg_projecttype_id [int(10) unsigned]
  19. * @property int $order_a [int(11)]
  20. * @property int $order_b [int(11)]
  21. * @property int $order_c [int(11)]
  22. */
  23. class AsusgProject extends \yii\db\ActiveRecord
  24. {
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public static function tableName()
  29. {
  30. return 'asusg_project';
  31. }
  32. public function getLocomotiveSeries()
  33. {
  34. return $this->hasOne(LocomotiveSeries::class, ['id' => 'loco_serie_id']);
  35. }
  36. public function getRepairtypes()
  37. {
  38. return $this->hasOne(Repairtypes::class, ['id' => 'repair_type']);
  39. }
  40. }