The big picture with MVC

We have already seen how the controller and view parts of MVC fit into the request/response life cycle. In every project, the database is the place to keep the business logic; this is why it is called model. In the model part of MVC, we define entities and the relationship between them. In our example, the User entity is part of our model.

The big picture can be updated as follows:

The big picture with MVC

Symfony MVC interactions in a request/response life cycle

Get Mastering Symfony now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.