BuildingMaterialCase.php 210 B

123456789101112
  1. <?php
  2. namespace app\model;
  3. use think\Model;
  4. class BuildingMaterialCase extends Model
  5. {
  6. public function materialCase(){
  7. return $this->hasOne(MaterialCase::class, 'id', 'material_case_id');
  8. }
  9. }