Updated for JMSSerializerBundle 1.0 compatibility