Is the model layer in the PHP framework equivalent to model+dao+service? in other languages?

problem description

I wonder what should be written to model

.
Php
Mar.24,2022

ORM- multi-table association-and some business logic algorithms-complex queries


suggest that model can be divided into three categories: logic layer, cache layer, and data layer
Controller. After the request comes in, you first use the logic layer under model to deal with the business logic. When you need to call data, you call the cache layer and the data layer respectively. These two can only write code that interacts with the database and cache


according to my understanding, the model layer is only responsible for the interaction with the database, such as fetching data, there should not be too many logical operations, logical operations can be written in the C layer, or can be sub-packaged, so it is easier to maintain and expand.


I don't think there are strict restrictions on this. Different teams or different individuals have different understandings. According to my understanding, model is used to interact with the database, and each table should have a corresponding model to interact with the table. The model layer should not write complex business logic, which should be placed in the service layer, while the controller layer should be responsible for calling

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36260-2bff6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36260-2bff6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?