What is the best way to fill an object with data from a database |
I already found the answer to my question with the pattern Domain Model and Data Mappers. After sending a request from the controller to the model, I get a object product with all attributes, option, image, categories, costs. The client still needs to call the render method and he sees the products.
Sorry for my English |
Messages In This Thread |
What is the best way to fill an object with data from a database - by phpforever2017 - 05-28-2017, 12:31 AM
RE: What is the best way to fill an object with data from a database - by skunkbad - 05-28-2017, 04:46 PM
RE: What is the best way to fill an object with data from a database - by phpforever2017 - 05-29-2017, 04:54 AM
|