AsusgJob2Project.php 564 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\models\entity;
  3. use Yii;
  4. /**
  5. * This is the model class for table "asusg_employee".
  6. *
  7. * @property int $id
  8. * @property string $asu_id
  9. * @property string $name
  10. * @property int $smopp_id
  11. */
  12. class AsusgJob2Project extends \yii\db\ActiveRecord
  13. {
  14. /**
  15. * {@inheritdoc}
  16. */
  17. public static function tableName()
  18. {
  19. return 'obsolete_asusg_job2project';
  20. }
  21. public function getJobplan()
  22. {
  23. return $this->hasOne(AsusgJobplan::className(), ['id' => 'asusg_jobplan_id']);
  24. }
  25. }