Convert empty string values to NULL, relations cannot be ''
This commit is contained in:
parent
6aaf4cce43
commit
bfaa55df31
|
|
@ -116,4 +116,11 @@ class Relation extends FormWidgetBase
|
|||
return $this->renderFormField = $field;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getSaveData($value)
|
||||
{
|
||||
return strlen($value) ? $value : null;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue