Skip to content

Commit

Permalink
Cleaning only the affected properties in link and unlink methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mylux committed Oct 21, 2015
1 parent 6b4bfa1 commit ff4c1e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ORM/Association/HasMany.php
Expand Up @@ -229,7 +229,7 @@ public function link(EntityInterface $sourceEntity, array $targetEntities, array

if ($ok) {
$sourceEntity->set($property, $savedEntity->get($property));
$sourceEntity->clean();
$sourceEntity->dirty($property, false);
}

return $ok;
Expand Down Expand Up @@ -297,7 +297,7 @@ function ($assoc) use ($targetEntities) {
);
}

$sourceEntity->clean();
$sourceEntity->dirty($property, false);
}

/**
Expand Down

0 comments on commit ff4c1e2

Please sign in to comment.