changes to management
This commit is contained in:
@@ -44,4 +44,8 @@ class Organization extends BaseModel
|
||||
// return $this->hasMany('App\Models\UserOrganization', 'organization_id','id')->where('record_status_id', RecordStatusEnum::ACTIVE)->where('organization_id', Session::get('base_organization_id'));
|
||||
// }
|
||||
|
||||
public function buildings(){
|
||||
return $this->hasMany(Building::class, 'organization_id', 'id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user