now flush method removes entity with mapper only if it has ID
if entity given, compares one in array and given with ===