-
Notifications
You must be signed in to change notification settings - Fork 30
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
Proxies with Doctrine #57
Comments
Hi @krabouilleur, yes this is a problem because Doctrine uses proxies to lazy-load entities. There are a few solutions:
By far the easiest way of doing this is to tell Doctrine to fetch the entities eagerly. Either on the mapping level if you always need them fully loaded, or on the single query if you only need it for one use case. |
Hello, I'm commenting on the issue because I have the updated version of lib and the problem persists. Someone managed to find a solution to the problem. |
Hi @jacksonveroneze - sorry, I completely missed your question. Do you still have the same problem? If so, can you give some more context? This so we can make sure it is the same problem as the original question, and to provide a starting point for debugging. |
Hi !
When we use Doctrine wich returns proxies, the mapper could not map : it maps property to null.
Is there a solution ?
example dump doctrine result :
dump($company->getSecteur->getName())
: returns a stringbut the mapper found "null"
The text was updated successfully, but these errors were encountered: