Created
December 13, 2015 18:48
-
-
Save doctrinebot/29dadeb0e85fff8e66bf to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DDC-700 - https://github.com/doctrine/doctrine2/issues/5213
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
# This patch file was generated by NetBeans IDE | |
# Following Index: paths are relative to: C:\work\supra7\src\lib\Doctrine\ORM\Proxy | |
# This patch can be applied using context Tools: Patch action on respective folder. | |
# It uses platform neutral UTF-8 encoding and \n newlines. | |
# Above lines and this line are ignored by the patching process. | |
Index: ProxyFactory.php | |
--- ProxyFactory.php Base (BASE) | |
+++ ProxyFactory.php Locally Modified (Based On LOCAL) | |
@@ -125,7 +125,7 @@ | |
$sleepImpl = $this->_generateSleep($class); | |
$placeholders = array( | |
- '<namespace>', | |
+ '<namespace>', '<classType>', | |
'<proxyClassName>', '<className>', | |
'<methods>', '<sleepImpl>' | |
); | |
@@ -136,8 +136,14 @@ | |
$className = $class->name; | |
} | |
+ if ($class->reflClass->isAbstract()) { | |
+ $classType = 'abstract '; | |
+ } else { | |
+ $classType = ''; | |
+ } | |
+ | |
$replacements = array( | |
- $this->_proxyNamespace, | |
+ $this->_proxyNamespace, $classType, | |
$proxyClassName, $className, | |
$methods, $sleepImpl | |
); | |
@@ -251,7 +257,7 @@ | |
/** | |
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE. | |
*/ | |
-class <proxyClassName> extends \<className> implements \Doctrine\ORM\Proxy\Proxy | |
+<classType>class <proxyClassName> extends \<className> implements \Doctrine\ORM\Proxy\Proxy | |
{ | |
private $_entityPersister; | |
private $_identifier; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment