Closed TheDeadCode closed 7 years ago
If we ever use a booted model in the queue and we switch tenant afterwards, the tenancy is kept in place and will use the old tenant id. We need to find a way to re-boot the models.
For those who are curious, simply doing
\Illuminate\Database\Eloquent\Model::clearBootedModels(); should fix your queue by resetting all scopes.
\Illuminate\Database\Eloquent\Model::clearBootedModels();
If we ever use a booted model in the queue and we switch tenant afterwards, the tenancy is kept in place and will use the old tenant id. We need to find a way to re-boot the models.