Permalink
Browse files

Merge pull request #270 from deresh/patch-1

The ProxyFactory was redeclaring methods
  • Loading branch information...
2 parents 84ad950 + 6e739c6 commit 41bae0e0bee5f411ddc36fe29d27da4ff63fbd1f @lsmith77 lsmith77 committed Mar 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/ODM/PHPCR/Proxy/ProxyFactory.php
View
2 lib/Doctrine/ODM/PHPCR/Proxy/ProxyFactory.php
@@ -204,7 +204,7 @@ private function generateMethods(ClassMetadata $class)
foreach ($class->reflClass->getMethods() as $method) {
/* @var $method \ReflectionMethod */
- if ($method->isConstructor() || strtolower($method->getName()) == '__sleep') {
+ if ($method->isConstructor() || strtolower($method->getName()) == '__sleep' || $class->reflClass->getName() != $method->class) {
continue;
}

0 comments on commit 41bae0e

Please sign in to comment.