Deprecated InvalidParameterException 

See https://github.com/sonata-project/SonataCoreBundle/pull/16