/**
* Updates a single model field for this model (attribute)
*
* @param integer $modelFieldId
* @param array $input
* @return array
*/
public function executeModelFieldUpdate($modelFieldId, $input)
{
try {
$field = $this->ModelManager->updateField($input['field'], $input['page']);
} catch (ModelFieldValidationFailedException $e) {
return $this->Response->json(['errors' => $e->getErrors()], 403);
}
return array('field' => $field);
}