laravel / laravel/nova-issues

allowDuplicateRelations detach not working as expected

Open
#6,844 9 comments 0 reactions 0 assignees View on GitHub
documentation needs more info
Dominant language
No language data
Stars
557
Forks
33
PR merge metrics
No merged PRs in 30d

Description

- Laravel Version: 11.44.2
- Nova Version: 5.5.4
- PHP Version: 8.3.20
- Database Driver & Version: PG
- Reproduction Repository: https://github.com/potsky/nova

### Description:

Same as #6496. Deleting a relation deletes all relations.

https://cln.sh/C6wChd7rBFGpMy6rVSkZ

### Detailed steps to reproduce the issue on a fresh Nova installation:

- https://github.com/potsky/nova
- `composer install`
- `php artisan migrate --seed`
- Go to https://nova.test/nova/resources/contract-resources/1 with `test@example.com` / `password`
- Delete a resource, it deletes all related resources.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the reproduction repository and follow the listed setup: run composer install, php artisan migrate --seed, then reproduce the deletion from the Contract Resources page. Compare the allowDuplicateRelations behavior with issue #6496 and verify that deleting one resource no longer deletes all related resources.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php, postgresql
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.