Disconnect - fix disconnect false (#13439)

Context: {disconnect: false} disconnects relation > fix in this PR + add
integration test
This commit is contained in:
Etienne
2025-07-25 14:26:05 +02:00
committed by GitHub
parent fecac68760
commit e386303fd3
2 changed files with 30 additions and 1 deletions
@@ -243,7 +243,7 @@ export class RelationNestedQueries {
)) {
entity = {
...entity,
[disconnectFieldName]: null,
[disconnectFieldName]: undefined,
...(disconnectObject[RELATION_NESTED_QUERY_KEYWORDS.DISCONNECT] ===
true
? { [getAssociatedRelationFieldName(disconnectFieldName)]: null }