currentRelease; if ($release === null) { return $article->code; } $release->loadMissing([ 'rootCompositionVersion.composition', 'rootElementVersion.element', ]); return $release->rootCompositionVersion?->composition?->designation ?? $release->rootElementVersion?->element?->working_title ?? $release->classification_note ?? $article->code; } }