Models
Introduction
In a PHP MVC framework, a Model represents the data and business logic layer. It handles database interactions, data validation, and rules that define how data can be created, retrieved, updated, or deleted. Models serve as the bridge between the application's data and the controller.
How to Use
Methods
- setDB
- getAllowedColumns
- find
- findBy
- findWhere
- findAll
- countWhere
- insert
- update
- delete
- toArray
- with
- relation
- hasOne
- hasMany
↑ (Última atualização: 13/05/2025)