Useful extras for Doctrine