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

Add validation function is_not_unique #2392

Merged
merged 9 commits into from
Nov 14, 2019

Conversation

kennylajara
Copy link
Contributor

Solve this feature request at the Codeigniter 4 Forum.

Add a validation to check the database to see if the given value exist. Can ignore records by field/value to filter (currently accept only one filter).

Add validation function `in_db`. Usefull to checks the database to see if the given value exist. Can ignore records by field/value to filter (currently accept only one filter).
Add validation function `in_db`
@MGatner
Copy link
Member

MGatner commented Nov 13, 2019

This is looking good! I like your alternate name suggestion on the forums - I'd be in favor of "is_not_unique" since is_unique is the other database-specific validation. We will also need this added to user_guide_src/source/libraries/validation.rst

@kennylajara kennylajara changed the title Add validation function in_db Add validation function is_not_unique Nov 14, 2019
@kennylajara
Copy link
Contributor Author

Updated the User Guide and changed the name to "is_not_unique"

@MGatner MGatner merged commit 9966498 into codeigniter4:develop Nov 14, 2019
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.

None yet

2 participants