Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Fixes entity not being removed from ES #117

Open
wants to merge 48 commits into
base: develop
Choose a base branch
from

Conversation

vokrik
Copy link

@vokrik vokrik commented Nov 1, 2015

Hi,
this should fix the bug I have experienced when removing entities. Aparently, doctrine after flushing the remove to entity sets its ID to NULL, and since the search manager tracks the entity as reference, it sends the request to delete the entity with ID NULL to elastic search. Cloning the entity should fix this problem.

BEFORE:
before1
before
before2
AFTER:
after
before
after1

Also, sorry if the pull request is wrong, doing it for the first time:) It should only change OrmSearchableListener, line 67, by ading clone in front of $oEntity

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants