Doctrine uses proxy objects to represent related objects in order to facilitate lazy loading. This is a really cool feature, but its causing an issue with something I am trying
Edit:As mention by @flu this approach don't return the "true" object. However it can be useful in case if you need the data from the object.
Then, you can just get the real object from ObjectManager by some of identity.