diff --git a/src/ORM/Association/BelongsToMany.php b/src/ORM/Association/BelongsToMany.php index 3b38f8fd0cc..47f7dbe88fe 100644 --- a/src/ORM/Association/BelongsToMany.php +++ b/src/ORM/Association/BelongsToMany.php @@ -808,6 +808,7 @@ function () use ($sourceEntity, $targetEntities, $options) { $sourceEntity->set($property, array_values($existing)); $sourceEntity->dirty($property, false); + return true; }