Improve with parsing of doctrine proxies