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

Feature request #2361

Closed
crustamet opened this issue Oct 23, 2019 · 2 comments
Closed

Feature request #2361

crustamet opened this issue Oct 23, 2019 · 2 comments

Comments

@crustamet
Copy link
Contributor

Always i have a bunch of times to insert a record if is not already inserted if a unique column.

Can you guys make a function method to something like this in the model class

$model->where('id != ', $id)->insert($insert_data);

It is verry frustrating that i have to do always a get request to check if the record exists.

@crustamet
Copy link
Contributor Author

crustamet commented Oct 23, 2019

I mean insert an record if a record do not already exist in the table by another column other than the primary key.

@jim-parry
Copy link
Contributor

Please open feature requests as a thread in https://forum.codeigniter.com/forum-29.html

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

No branches or pull requests

2 participants