Skip to content

Commit 678fe0e

Browse files
Fix ResourceEntityTrait.php delete relation with custom names
1 parent 4434f5c commit 678fe0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ResourceEntityTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public static function patch($id, $data) {
282282
foreach ($oldIds as $id => $oldRelationsToBeRemoved) {
283283
foreach ($oldRelationsToBeRemoved as $oldRelation) {
284284
$oldRelations->remove($oldRelation);
285-
$item->delete($oldRelation);
285+
$item->deleteRelation($oldRelation, $relation->getName());
286286
$item->relationRemoved($oldRelation);
287287
}
288288
}

0 commit comments

Comments
 (0)