issue 1830 fix

Addition to https://github.com/sonata-project/SonataAdminBundle/issues/1830 fix