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/BaseModel - Fix primary key and add @throws for builder method #4071

Merged

Conversation

najdanovicivan
Copy link
Contributor

@najdanovicivan najdanovicivan commented Jan 6, 2021

Description
This fixes the issue with primaryKey property which was unintentionally left inside base model. This also ads @throws for builder() method

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

Copy link
Member

@michalsn michalsn left a comment

Choose a reason for hiding this comment

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

Tests should be adjusted, but other than that is looks good.

@najdanovicivan najdanovicivan changed the title Model/BaseModel - Fix primary key and builder method access Model/BaseModel - Fix primary key and add @throws for builder method Jan 6, 2021
@najdanovicivan
Copy link
Contributor Author

Tests should be adjusted, but other than that is looks good.

I was looking at the code from master branch. But the builder() method was made public before I did the BaseModel split so it should be left as public

@paulbalandan paulbalandan merged commit e67d29f into codeigniter4:develop Jan 7, 2021
@najdanovicivan najdanovicivan deleted the nosql/base-model-fix branch January 10, 2021 15:39
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.

3 participants