Fixed error with latest version of Symfony2.2-DEV