fork for symfony2.2 compatibily issue