entity manager: rebuild on reset to default
This commit is contained in:
@@ -743,6 +743,13 @@ class EntityManager
|
||||
$this->processUpdateHook($entityTypeParams, $previousEntityTypeParams);
|
||||
|
||||
$this->dataManager->clearCache();
|
||||
|
||||
if (
|
||||
!$previousEntityTypeParams->get('optimisticConcurrencyControl') &&
|
||||
$entityTypeParams->get('optimisticConcurrencyControl')
|
||||
) {
|
||||
$this->dataManager->rebuild();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user