solve the mismatch between objects and sql rows in tables?
Iuse some classes for extracting rows of tables and then inject data to real object, that`s a bad implementation I think. And also as I said before, my data base logic is simple, that is heavy for it to use ORM modle.
Use sql2o in that case. It’s a good wrapper for plain SQL. And it provides kind of mapping.
Обсуждают сегодня