Hello, I have entity class containing a method that returns reference:
But when Doctrine creates it's proxy class, the reference ampersand in the proxy class disappears:
It causes incompatibility of the proxy class and unexpected behaviour of the method.
Here is the solution, could you please include it to the Doctrine code?
The Doctrine\ORM\Proxy\ProxyFactory should be fixed - in method _generateMethods() there is following line:
It should be replaced by something like this:
Thank you for the fix!