-
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
Entity Concerns #662
Comments
In order for the Entity to be saved back to the database properly, it has to know what fields are part of it. I was trying to think of a solution, and the model has However, the pragmatic solution is, instead of trying to change things to save 5 minutes of typing, you spend a couple of hours to automate it for the future. I've already started that process for anyone using CI4. |
looking at Vulcan, it still does not solve it. especially when doing table joining (the basic extent have tried implementing to). like you said, a code review would be better to proffer a better work around. |
I'm not able to come up with a good solution, and I don't believe there is one.
The Entity class is an optional class on top of the database layer, anyway, so no one's forcing you to use it. You could always create your own base entity class if you wanted, tailored to your workflow. I looked at how the largest database system that I know of that uses a similar pattern as this system does things (Doctrine) and the entity class has to define each field type as well. |
Ok, @lonnieezell , i would not give up on it. would make some research on it |
for the entity of each model to work, it's required that the properties of each value be defined. to me it's of a huge concern, cus if I have a database table with a large amount of columns, I have to define all. Also which I do a joining, I also have to define all in the entity. also the make's the entity a kind of tedious task.
there should be a lighter mode of calling all properties without having to define everything.
The text was updated successfully, but these errors were encountered: