We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc118b3 commit f8ea6c7Copy full SHA for f8ea6c7
composer.json
@@ -25,7 +25,7 @@
25
}
26
},
27
"require": {
28
- "php": ">=8.2",
+ "php": ">=8.4",
29
"doctrine/collections": ">1",
30
"doctrine/inflector": "^2",
31
"doctrine/orm": "^3",
src/DoctrineEntityNormalizer.php
@@ -395,7 +395,7 @@ private function setProperty(
395
// Public item hook.
396
if (property_exists($entity, $attribute)) {
397
$reflProp = new ReflectionProperty($entity, $attribute);
398
- if ($reflProp->isPublic()) {
+ if ($reflProp->isPublic() && !$reflProp->isProtectedSet() && !$reflProp->isPrivateSet()) {
399
$reflProp->setValue($entity, $value);
400
return;
401
0 commit comments