-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
CI4: OSPOS Function signatures not compatible with CI4 #3602
Comments
What does the base function exactly do? If its internal kitchen then we perhaps better change the signatures. I agree that we should strive to make changes consistent. |
https://codeigniter.com/user_guide/models/model.html#deleting-data They are cookie-cutter CRUD functions meant for use in the application. In many cases I think we may be unnecessarily overriding them because CI4 provides the functionality we want. For example we can do $attribute->where('attribute_id', $attribute_id)->delete(); and no need to override. The only caveat with delete specifically is that we want soft deletes. The way CI_4 does this is with a |
I believe I resolved all of these. Will reopen if I find more. |
With CI4 comes a number of built in CRUD functions by the same name as some of our model functions. The problem is that the function signatures do not match, so it throws a runtime exception.
![image](https://user-images.githubusercontent.com/17935339/204285748-f3611e2f-1fc1-4d87-aff3-c4591c00b48e.png)
This can be resolved one of two ways
No one likes code that looks like a rat's nest, so I prefer 2, but unless more people are able to contribute to this upgrade, we may need to compromise by doing 3. @jekkos @daN4cat @opensourcepos/org thoughts?
closed by #3592
The text was updated successfully, but these errors were encountered: