Only refresh the given entity if an entity is specified in the query hints
This commit is contained in:
parent
3131103801
commit
9c9f85ed4b
1 changed files with 5 additions and 0 deletions
|
@ -2195,6 +2195,11 @@ class UnitOfWork implements PropertyChangedListener
|
|||
}
|
||||
} else {
|
||||
$overrideLocalValues = isset($hints[Query::HINT_REFRESH]);
|
||||
|
||||
// If a only a specific entity is set to refresh, check that it's the one
|
||||
if(isset($hints[Query::HINT_REFRESH_ENTITY])) {
|
||||
$overrideLocalValues = $hints[Query::HINT_REFRESH_ENTITY] === $entity;
|
||||
}
|
||||
}
|
||||
|
||||
if ($overrideLocalValues) {
|
||||
|
|
Loading…
Add table
Reference in a new issue