You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Neos.Flow/Classes/Reflection/ReflectionService.php
+2-1
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
useDoctrine\Common\Annotations\AnnotationReader;
15
15
useDoctrine\Common\Annotations\PhpParser;
16
16
useDoctrine\ORM\MappingasORM;
17
+
useDoctrine\Persistence\ProxyasDoctrineProxy;
17
18
useNeos\Flow\AnnotationsasFlow;
18
19
useNeos\Cache\Frontend\FrontendInterface;
19
20
useNeos\Cache\Frontend\StringFrontend;
@@ -1236,7 +1237,7 @@ protected function reflectClass($className)
1236
1237
$this->log(sprintf('Reflecting class %s', $className), LogLevel::DEBUG);
1237
1238
1238
1239
$className = $this->cleanClassName($className);
1239
-
if (strpos($className, 'Neos\Flow\Persistence\Doctrine\Proxies') === 0 && in_array(\Doctrine\ORM\Proxy\Proxy::class, class_implements($className))) {
1240
+
if (strpos($className, 'Neos\Flow\Persistence\Doctrine\Proxies') === 0 && in_array(DoctrineProxy::class, class_implements($className))) {
1240
1241
// Somebody tried to reflect a doctrine proxy, which will have severe side effects.
1241
1242
// see bug http://forge.typo3.org/issues/29449 for details.
1242
1243
thrownewException\InvalidClassException('The class with name "' . $className . '" is a Doctrine proxy. It is not supported to reflect doctrine proxy classes.', 1314944681);
0 commit comments