1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +03:00

Rename handleCache to updateCache

This commit is contained in:
Sofiane HADDAG 2014-12-30 14:49:12 +01:00
parent ccb09ad0ac
commit 8d91f7de60

View file

@ -40,13 +40,13 @@ class NonStrictReadWriteCachedEntityPersister extends AbstractEntityPersister
if (isset($this->queuedCache['insert'])) { if (isset($this->queuedCache['insert'])) {
foreach ($this->queuedCache['insert'] as $entity) { foreach ($this->queuedCache['insert'] as $entity) {
$isChanged = $this->handleCache($entity, $isChanged); $isChanged = $this->updateCache($entity, $isChanged);
} }
} }
if (isset($this->queuedCache['update'])) { if (isset($this->queuedCache['update'])) {
foreach ($this->queuedCache['update'] as $entity) { foreach ($this->queuedCache['update'] as $entity) {
$isChanged = $this->handleCache($entity, $isChanged); $isChanged = $this->updateCache($entity, $isChanged);
} }
} }
@ -93,7 +93,7 @@ class NonStrictReadWriteCachedEntityPersister extends AbstractEntityPersister
$this->queuedCache['update'][] = $entity; $this->queuedCache['update'][] = $entity;
} }
private function handleCache($entity, $isChanged) private function updateCache($entity, $isChanged)
{ {
$class = $this->class; $class = $this->class;
$className = ClassUtils::getClass($entity); $className = ClassUtils::getClass($entity);