1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Merge branch 'master' of https://github.com/thiagofesta/doctrine2 into thiagofesta-master

This commit is contained in:
Benjamin Eberlei 2011-11-13 17:05:23 +01:00
commit 4e10a95dca

View File

@ -167,7 +167,7 @@ class ProxyFactory
foreach ($class->reflClass->getMethods() as $method) {
/* @var $method ReflectionMethod */
if ($method->isConstructor() || in_array(strtolower($method->getName()), array("__sleep", "__clone"))) {
if ($method->isConstructor() || in_array(strtolower($method->getName()), array("__sleep", "__clone")) || $class->reflClass->getName() != $method->class) {
continue;
}