Custom DQL functions for Doctrine - Symfony2