Some addons for doctrine