Skip to content
This repository
Browse code

The ProxyFactory was redeclaring methods

The ProxyFactory was redeclaring methods  serialize and unserialize  on the cache file on some OSs.

This is a direct port of fix already in ORM:
thiagofesta/doctrine2@66d2b9e
  • Loading branch information...
commit 6e739c6a2d7abb32206fe4a0c6451d8d92c95462 1 parent 84ad950
deresh deresh authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/Doctrine/ODM/PHPCR/Proxy/ProxyFactory.php
2  lib/Doctrine/ODM/PHPCR/Proxy/ProxyFactory.php
@@ -204,7 +204,7 @@ private function generateMethods(ClassMetadata $class)
204 204
205 205 foreach ($class->reflClass->getMethods() as $method) {
206 206 /* @var $method \ReflectionMethod */
207   - if ($method->isConstructor() || strtolower($method->getName()) == '__sleep') {
  207 + if ($method->isConstructor() || strtolower($method->getName()) == '__sleep' || $class->reflClass->getName() != $method->class) {
208 208 continue;
209 209 }
210 210

0 comments on commit 6e739c6

Please sign in to comment.
Something went wrong with that request. Please try again.