silverstripe / silverstripe-restfulserver

RestfulServer module for Silverstripe CMS
http://www.silverstripe.org/restfulserver-module/
BSD 3-Clause "New" or "Revised" License
46 stars 48 forks source link

RestfulServer::getAllowedRelations() is not compatible with Many Many Through List #77

Open robbieaverill opened 5 years ago

robbieaverill commented 5 years ago

If you access an object with a MMTL defined, getAllowedRelations() will throw:

[Warning] explode() expects parameter 2 to be string, array given

Also XMLDataFormatter::convertDataObjectWithoutHeader() and JSONDataFormatter::convertDataObjectToJSONObject().