Skip to content

Instantly share code, notes, and snippets.

@doctrinebot
Created December 13, 2015 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doctrinebot/29dadeb0e85fff8e66bf to your computer and use it in GitHub Desktop.
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 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