Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of tyx:
Here is a piece of code which leads to an exception if we keep it :
Sure it is an edge case with tricks but I'm sure Doctrine does not need this kind of optimization.
My 2 cent
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1024] was closed:
Comment created by @guilhermeblanco:
User is modifying entity metadata to apply non-expected behavior.
Issue marked as invalid.
Issue was closed with resolution "Invalid"