SilverStripe\RestfulServer\RestfulServer::updateDataObject
Converts either the given HTTP Body into an array (based on the DataFormatter instance), or returns the POST variables.
Automatically filters out certain critical fields that shouldn't be set by the client (e.g. ID).
Signature
protected function updateDataObject(DataObject
$obj,
DataFormatter
$formatter )
Parameters
$obj
— object
$formatter
— object
Returns
- DataObject|string
- The passed object, or "No Content" if incomplete input data is provided
Line | Task |
---|---|
677 | Disallow editing of certain keys in database |