Skip to content

removing check for notNull violation when receiving undefined values - #7167

Closed
jony89 wants to merge 1 commit into
sequelize:v3from
jony89:v3branch
Closed

jony89 wants to merge 1 commit into
sequelize:v3from
jony89:v3branch

Conversation

@jony89

@jony89 jony89 commented Jan 30, 2017 •

Copy link
Copy Markdown

V3 fixes issue #7056

removing check for notNull violation when receiving undefined values as properties with undefined values are skipped.

currently, we need to check in mappers each field in order to do population :

if (field) {
  model.db_field = field;
}

instead of just:

model.db_field = field;

affects only for fields with allowNull: false. others behave correctly.

…as properties with undefined values are skipped.
@mention-bot

Copy link
Copy Markdown

@jony89, thanks for your PR! By analyzing the history of the files in this pull request, we identified @thanpolas, @mbroadst and @mickhansen to be potential reviewers.

@codecov-io

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (v3@2110276).


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2110276...05429b6. Read the comment docs.

@jony89 jony89 changed the title removing check for notNull violation when receiving undefined values as properties with undefined values are skipped. removing check for notNull violation when receiving undefined values Jan 30, 2017
@stale stale Bot added the stale label Jun 29, 2017
@stale stale Bot closed this Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants