Advertisement
Guest User

Flats

a guest
Sep 1st, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php namespace App\Models\MSSQL\Newbuilds;
  2.  
  3. use App\Models\MSSQL\Newbuilds;
  4.  
  5. class Flats extends Model
  6. {
  7. protected $table = 'dbo.tblFlats';
  8.  
  9. public function Object()
  10. {
  11. return $this->belongsTo(Object::class, 'Object_ID', 'ID');
  12. }
  13.  
  14. public function ObjectAddress()
  15. {
  16. return $this->belongsTo(ObjectAddress::class, 'Object_ID', 'ID');
  17. }
  18.  
  19. public function ObjectComplex()
  20. {
  21. return $this->belongsTo(ObjectComplex::class, 'Object_ID', 'ID');
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement