adding support for doctrine findAll and findBy