Skip to content

Commit

Permalink
Fixes the problem with entities not being removed from ES
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Vokřínek committed Nov 1, 2015
1 parent db46613 commit 85a431e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Search/Tools/OrmSearchableListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function preRemove(LifecycleEventArgs $oArgs)
{
$oEntity = $oArgs->getEntity();
if ($oEntity instanceof Searchable) {
$this->sm->remove($oEntity);
$this->sm->remove(clone $oEntity);
}
}

Expand Down

0 comments on commit 85a431e

Please sign in to comment.