protected refresh ( $keepChanges, $internal = false ) |
protected function refresh($keepChanges, $internal = false)
{
if ($this->isDeleted()) {
if ($internal) {
// @codeCoverageIgnoreStart
// FIXME: this should not be possible
return;
// @codeCoverageIgnoreEnd
}
throw new InvalidItemStateException('This property is deleted');
}
// Let the node refresh us
try {
// do not use getParent to avoid checkState - could lead to an endless loop
$this->objectManager->getNodeByPath($this->parentPath)->refresh($keepChanges);
} catch (ItemNotFoundException $e) {
$this->setDeleted();
}
}