Models (databases)

A model is a class that represents your application's data and business logic, and it is responsible for managing data storage, retrieval, and manipulation. The Model communicates with the View and the Controller to provide data and to update the application's state.


Each database table has a corresponding "Model" which is used to interact with that table. Models allow you to query for data in your tables, as well as insert new records into the table.


Did you know?

Gozen does NOT support any ORM. It uses just vanilla SQL, with prepared statements. For a more in depth study please see the Database section.