Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model, fixed retry to save invalid model bug #202

Merged
merged 2 commits into from
Oct 1, 2018
Merged

Conversation

Yahasana
Copy link
Contributor

@Yahasana Yahasana commented Oct 1, 2018

Invalid model can't be re-saved even though its has been fixed to valid one

Mofasa added 2 commits October 1, 2018 13:42
Invalid model can't be saved even though its has been fixed to valid one
let fields = this->fields(this->getData(), !this->autoincrement);

if typeof this->primary == "array" {
let fields = array_diff_key(fields, primary);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create require to store the primary keys

@mruz mruz merged commit fe60cca into ice:dev Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants