Additional DQL functions for Doctrine2