Permalink
Browse files

revert locale aware proxy as it is not (yet) used

  • Loading branch information...
1 parent 31b8faf commit 677fffa6cba939c1552029910b383c911550ddc8 @dbu dbu committed Dec 13, 2011
Showing with 2 additions and 9 deletions.
  1. +2 −9 lib/Doctrine/ODM/PHPCR/Proxy/ProxyFactory.php
@@ -297,25 +297,18 @@ private function generateSleep(ClassMetadata $class)
class <proxyClassName> extends \<className> implements \Doctrine\ODM\PHPCR\Proxy\Proxy
{
private $__doctrineDocumentManager__;
- private $__doctrineLocale__;
private $__doctrineIdentifier__;
public $__isInitialized__ = false;
- public function __construct($documentManager, $identifier, $locale = null)
+ public function __construct($documentManager, $identifier)
{
<unsetattributes>
$this->__doctrineDocumentManager__ = $documentManager;
- $this->__doctrineLocale__ = $locale;
}
private function __doctrineLoad__()
{
if (!$this->__isInitialized__ && $this->__doctrineDocumentManager__) {
$this->__isInitialized__ = true;
- $repository = $this->__doctrineDocumentManager__->getRepository(get_class($this));
- if (is_null($this->__doctrineLocale__)) {
- $repository->refreshDocumentForProxy($this);
- } else {
- $repository->refreshDocumentForProxy($this, $this->__doctrineLocale__);
- }
+ $this->__doctrineDocumentManager__->getRepository(get_class($this))->refreshDocumentForProxy($this);
unset($this->__doctrineDocumentManager__);
}
}

0 comments on commit 677fffa

Please sign in to comment.