Updating entity parser to handle doctrine proxies.