Skip to content


Make the __load function public so the line 2552 of "lib/Doctrine/ODM/Mo... #229

merged 1 commit into from

3 participants


...ngoDB/UnitOfWork.php" not throw error (fixes #219)

Please, look here too: doctrine/DoctrineMongoDBBundle#70

Actually i cant take data from a different document_manager and put in a drop down using DoctrineMongoDBBundle.
With this fix and the one from the link above, everything works fine.

Thank you!

Doctrine member

it would be even better to change the proxy interface to extend the new Doctrine\Common\Persistence\Proxy one but this is a first step.


Hi @stof !

I agree, this little change was just the quickest way i found to get rid of the error, so i can update my project :)

Doctrine member
@kriswallsmith kriswallsmith merged commit 3ed2c4f into doctrine:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 9, 2012
  1. @fernanDOTdo

    Make the __load function public so the line 2552 of "lib/Doctrine/ODM…

    fernanDOTdo committed
    …/MongoDB/UnitOfWork.php" not throw error (fixes #219)
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php
2 lib/Doctrine/ODM/MongoDB/Proxy/ProxyFactory.php
@@ -268,7 +268,7 @@ public function __construct(DocumentPersister $documentPersister, $identifier)
$this->__documentPersister__ = $documentPersister;
$this->__identifier__ = $identifier;
- private function __load()
+ public function __load()
if (!$this->__isInitialized__ && $this->__documentPersister__) {
$this->__isInitialized__ = true;
Something went wrong with that request. Please try again.