In the MVC framework, most departments in some PHP frameworks are a table corresponding to an M file. Suddenly, I wonder how it works if there is a transaction? In the MVC framework, most departments in some PHP frameworks are a table corresponding to an M file. Suddenly, I wonder how it works if there is a transaction?
Reply content:
In the MVC framework, most departments in some PHP frameworks are a table corresponding to an M file. Suddenly, I wonder how it works if there is a transaction?
The model has no direct relationship with the database table (unless you use the ORM)
I guess you are using ORM. ORM is only a ing relationship between tables. If the ing is correct,
It doesn't matter which file you write the ing with. Everyone will unify the rules for better
Reading the code will be divided into several exhausting folders of the view controller model.
Database transactions are processed at the storage engine layer. No matter how folders are divided in the previous section, How to Write SQL statements,
The database contains all characters, and the database server parses the SQL statement.
I hope my answer will help you.