In DoctrineProxySubscriber used check of LazyLoadingInterface, from ocramius/proxy-manager,  but this package required only for dev  As a result, proxy objects are not processed correctly when the enable_lazy_ghost_objects key is enabled.