get a partial reference in Doctrine

Code
<?php

use PHPSnippets\Db\Entity\Test;

/**
 * @see http://doctrine-orm.readthedocs.org/en/latest/reference/partial-objects.html
 */

// get Entity partial reference with id 1
$ref $entityManager->getPartialReference(Test::CLASS, 1);

// Access data returns no values, but its id
dump($ref->id$ref->name);
Result
^ 1

^ null
Used Versions
PHP 8.2, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8