I created a form which contains a select field, based on a column that is both non-nullable and has a default specified on the entity. When the field is rendered by the default form rendering, it contains a blank value (by design) but when that blank value is selected and the form submitted, there is no validation happening, and an integrity error results: null value in column violates not-null constraint
The workaround is to specify the SelectField explicitly and include validators=[InputRequired()]