mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 22:14:03 +00:00
Simplify DeleteAllTenantMappings (code and docblocks)
This commit is contained in:
parent
cb91083024
commit
9c16b7d53e
2 changed files with 16 additions and 36 deletions
|
|
@ -75,7 +75,7 @@ beforeEach(function () {
|
|||
CreateTenantResource::$shouldQueue = false;
|
||||
DeleteResourceInTenant::$shouldQueue = false;
|
||||
UpdateOrCreateSyncedResource::$scopeGetModelQuery = null;
|
||||
DeleteAllTenantMappings::$pivotTables = [];
|
||||
DeleteAllTenantMappings::$pivotTables = ['tenant_resources' => 'tenant_id'];
|
||||
|
||||
// Reset global scopes on models (should happen automatically but to make this more explicit)
|
||||
Model::clearBootedModels();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue