1
0
Fork 0
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:
lukinovec 2025-11-05 09:57:17 +01:00
parent cb91083024
commit 9c16b7d53e
2 changed files with 16 additions and 36 deletions

View file

@ -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();