Some extention for symfony2