BankPlatform.php 343 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: qisse
  5. * Date: 2017/6/27
  6. * Time: 20:02
  7. */
  8. namespace app\core\model;
  9. use think\Model;
  10. class BankPlatform extends Model
  11. {
  12. protected $resultSetType = 'collection';
  13. protected $pk = 'bankPlatformID';
  14. public function bank() {
  15. return $this->belongsTo('bank', 'bankID');
  16. }
  17. }