/** * @param Object\Concrete $object * @return Object\Concrete */ protected function getLatestVersion(Object\Concrete $object) { $modificationDate = $object->getModificationDate(); $latestVersion = $object->getLatestVersion(); if ($latestVersion) { $latestObj = $latestVersion->loadData(); if ($latestObj instanceof Object\Concrete) { $object = $latestObj; $object->setModificationDate($modificationDate); // set de modification-date from published version to compare it in js-frontend } } return $object; }