make sure to use the sonata exporter which works with this version 2.1 symfony