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

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