-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Codeigniter/Model - Select Database Table Fields #1072
Comments
would be a nice improvement - also increase table compatibility while development |
These type of questions should be asked in the CodeIgniter 4 Forums not here. |
Agreed. This sounds like a feature request, and should be raised onthe forum. We use github for tracking bugs and approved work packages. |
Yo are right, but the model logic needs to be overwritten in some parts, to support the oppurtunity to select only specific fields, otherwise the Model is kinda useless for data selection. |
First - You can chain Query Builder commands with the model commands, so you should be able to do:
Second - you should probably filter the data before displaying it to the user anyway, as a security thing. Third - don't expect any type of relationships to happen in the models in the core. We've said from day one that an ORM would not be part of the core. |
I like the Idea of protected/allowed Database Table Fields for insertion and updating data sets.
But i miss the opportunity, to specify the fields i want to receive from the database table request/query in the extended Model Classes and the Model Class itself.
Furthermore it would be also great for @lonnieezell Forum App , to set specific fields for Relationship Tables and the own Table which should be selected/received.
The text was updated successfully, but these errors were encountered: