add support for doctrine entities