-
-
Save doctrinebot/a7e685bcdb14ef1ce066 to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DDC-1732 - https://github.com/doctrine/doctrine2/issues/2381
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: lib/Doctrine/ORM/Proxy/ProxyFactory.php | |
=================================================================== | |
--- lib/Doctrine/ORM/Proxy/ProxyFactory.php (revision 6670) | |
+++ lib/Doctrine/ORM/Proxy/ProxyFactory.php (working copy) | |
@@ -358,7 +358,11 @@ | |
/** @private */ | |
public function __load() | |
{ | |
- if (!$this->__isInitialized__ && $this->_entityPersister) { | |
+ if (!$this->__isInitialized__) { | |
+ if (!$this->_entityPersister) { | |
+ throw new \Doctrine\ORM\ORMException("Uninitialized detached proxy"); | |
+ } | |
+ | |
$this->__isInitialized__ = true; | |
if (method_exists($this, "__wakeup")) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment