Adds 'andFlush' argument in BaseManager::persist() and BaseManager::remove()