-
Notifications
You must be signed in to change notification settings - Fork 32
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
Implement new Models structure as instantiation of Class. #195
Comments
Pinging in here to see what people say |
If they accept ORM and help to test, it is almost ready (: |
What I said to @arnisjuraga in the implementation of ORM, I already have a new structure of Models, still need to convert all the tables into models, plus the relationship between them and the business rule within them, of course this requires time and testing. but to support the new structure is already a beginning, then only gradually converting the models |
I'm pushing ahead on my version too :) I've put ALL the models for the project in a new directory, I did some refactoring: All the models that were in admin, have had
I had been converting the models in Admin to use prepared statements, but realized I was going in the wrong order. So now that the model files are combined together, I can do the refactoring once, then compare models, and merge missing functions together. I also have to do a LITTLE tweaking to the database class. Since I'm only supporting mySql through PDO, I need to get migrate the functions in library/db/mpdo into library/db.php. Other databases COULD be supported through PDO, but some queries would need to be rewritten (just like they would anyways). Here's where I'm at so far: https://github.com/lucasjkr/opencommerce/tree/combine-models look in /common/model/ the first half of the admin models were refactored to prepared statements, so if you look at /common/model/catalog/product_admin.php, you can see what I've done. Not sure if it helps with the ORM, but feel free! |
Comments?
The text was updated successfully, but these errors were encountered: