-
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
Compile Error - Proxy not compatible with entity class on PHP 7.1 #6421
Comments
What's your |
Part of my composer.json file:
In my composer.lock there is |
Wait, your This is a limitation of the library that can't be fixed in 2.x |
So I presume, that this also applies for all magic methods? |
@ktrzos magic methods are usually fixed/predefined, so even if you interface them, usually everything is fine. In general, #1241 fixes all these concerns, but it won't be ready for a while... |
@ktrzos for the magic method definitions, Ocramius/ProxyManager#350 is relevant. |
Doctrine 3.0 will be switching to ProxyManager so this issue could be closed. |
Proxy:
Entity:
Above occurs when I'm using Doctrine Fixtures and method
getReference()
. Everything is okay (no errors like above) when I just traverse trough the project pages or do not use above method in Fixtures.I got similar problem in other case:
https://stackoverflow.com/questions/43521985/symfony-3-doctrine-proxy-error-after-entity-magic-method-change-with-php-7-t
PHP 7.1 here.
The text was updated successfully, but these errors were encountered: