-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Labels
bugVerified bug by the Nova teamVerified bug by the Nova teamfix incomingA fix is in reviewA fix is in review
Description
- Laravel Version: 11.17.0
- Nova Version: 4.34.3
- PHP Version: 8.3.9
- Reproduction Repository: https://github.com/niekdemelker/issue-6479
Description:
When using an BelongsToMany field, this will show all related models on the Details page. This request to fetch all relation records however calls the DB many times to fetch the ViaResource model. Sometimes over 20 times in one request (Strange enough Model::preventLazyLoading(! app()->isProduction()) doesn't block this behaviour.).
The logging states this call is done repeatedly from 'Http/Requests/InteractsWithRelatedResources.php:72' and one time from 'Http/Requests/QueriesResources.php:38'.
Detailed steps to reproduce the issue on a fresh Nova installation:
- run migrations & seeder
- create nova user
- Open Nova and navigate to 'service levels' and open the details page of the generated record
- Open Telescope and search on the tag 'bug' to see the recorded queries of this request
ecreeth
Metadata
Metadata
Assignees
Labels
bugVerified bug by the Nova teamVerified bug by the Nova teamfix incomingA fix is in reviewA fix is in review