Stubbed saveInto for LookupField so that data can't be saved on a form accidentally

This commit is contained in:
Jake Bentvelzen 2015-12-16 09:42:14 +11:00
parent 65d7398c63
commit 0bf55cff39

View File

@ -80,7 +80,7 @@ class LookupField extends DropdownField {
}
/**
* Validate this field
* Ignore validation as the field is readonly
*
* @param Validator $validator
* @return bool
@ -89,6 +89,14 @@ class LookupField extends DropdownField {
return true;
}
/**
* Stubbed so invalid data doesn't save into the DB
*
* @param DataObjectInterface $record DataObject to save data into
*/
public function saveInto(DataObjectInterface $record) {
}
/**
* @return LookupField
*/