-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ProxyManager #8518
Comments
Leads to an error:
|
It works for me on b2f404b . Have you run |
|
@alcaeus brought to my attention that our old prototype branch has done this also: https://github.com/doctrine/orm/blob/old-prototype-3.x/lib/Doctrine/ORM/Proxy/Factory/StaticProxyFactory.php - This could be used as a starting point, sorry I didn't see this before. |
We've had issues around that in ODM. We worked around it, but the upcoming release of doctrine/persistence includes configurable resolvers: doctrine/persistence#145. This will allow a better implementation in ORM without hooking into a number of method calls to resolve proxy class names. |
@beberlei @alcaeus I tried to get back to this issue, but I'm not sure what should I do and where to start. Probably I need to replace the proxy factory in the EntityManager? Also, change all places that are using EntityManagerInterface::getProxyFactory()? What should be used instead of AbstractProxyFactory methods? |
We should detach this from a milestone for now, effectively unscheduling it, since the |
Why not make a fork? :-) |
Why not help out instead? I'm not paid to work on it, y'know? 😛
…On Thu, 12 May 2022, 12:30 Serhii Smirnov, ***@***.***> wrote:
the ProxyGenerator is under our control and the last 2 years have shown
that proxy-manager cannot keep up with new features in PHP releases quickly
enough for us.
Why not make a fork? :-)
—
Reply to this email directly, view it on GitHub
<#8518 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABFVEDE7KBY5LPOS46KZ4DVJTMVPANCNFSM4YLRDTWQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I'd help, but I think some roadmap is needed because I don't know what exactly Doctrine project needs |
See https://github.com/Ocramius/ProxyManager/milestone/56 Effectively it's just about supporting newer PHP versions, and PHP 8.1 has been a nightmare to upgrade to, with some of the libraries I co-maintain taking multiple months of work just to get there. In practice, PHP 8.1 is probably the worst release I've dealt with yet :P |
So PARTIAL has been marked deprecated for a while. In how far can we rely on PARTIAL staying around until lazy loading for 1:1 relationships is implemented as suggested here? |
We can replace our own proxy generator with https://github.com/FriendsOfPHP/proxy-manager-lts in two steps:
getClassMetadata(get_class($proxy))
, which needs a resolver or something alike.The text was updated successfully, but these errors were encountered: