Skip to content

Commit 86880d9

Browse files
committed
Don't use deprecated ClassMetadata::getPropertyAccessor()
1 parent 8ab60d8 commit 86880d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Proxy/Factory/StaticProxyFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function skippedFieldsFqns(ClassMetadata $metadata): array
146146
$skippedFieldsFqns = [];
147147

148148
foreach ($metadata->getIdentifierFieldNames() as $idField) {
149-
$skippedFieldsFqns[] = $this->propertyFqcn($metadata->getReflectionProperty($idField));
149+
$skippedFieldsFqns[] = $this->propertyFqcn($metadata->getPropertyAccessor($idField)->getUnderlyingReflector());
150150
}
151151

152152
foreach ($metadata->getReflectionClass()->getProperties() as $property) {

0 commit comments

Comments
 (0)