diff --git a/code/model/Translatable.php b/code/model/Translatable.php index c917a46..18b19f6 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -929,6 +929,8 @@ class Translatable extends DataExtension implements PermissionProvider { function applyTranslatableFieldsUpdate($fields, $type) { if (method_exists($this, $type)) { $this->$type($fields); + } else { + throw new InvalidArgumentException("Method $type does not exist on object of type ". get_class($this)); } }