snapshot instanceof PlanSnapshotEntity ? $cmd->snapshot : $this->repo->ofId($cmd->snapshot); $snapshot->resync(); return $snapshot; } }