---
title: "Feature: #86967 - Allow fetching uid of a LazyLoadingProxy without loading the object first"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-86967"
source: "Changelog/10.2/Feature-86967-AllowFetchingUidOfALazyLoadingProxyWithoutLoadingTheObjectFirst.rst"
typo3-version: "10.2"
typo3-major: 10
type: "feature"
issue: 86967
forge: "https://forge.typo3.org/issues/86967"
tags: ["PHP-API", "ext:extbase"]
rendered: "2026-09-24T12:29:17+00:00"
---

# Feature: #86967 - Allow fetching uid of a LazyLoadingProxy without loading the object first {#feature-86967}

See [forge#86967](https://forge.typo3.org/issues/86967)

## Description {#description}

A method `getUid()` has been added to class `\TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy` which
allows for fetching the uid of the proxied object without fetching the object data itself from the database.

## Impact {#impact}

The method `getUid()` can be used to fetch the uid of objects for a quick comparison with other objects of the same
type which increases the performance of such comparisons a lot.
