Data Handling/Data Abstraction Layer
The data handling, or the Data Abstraction Layer (DAL), can be an overwhelming topic. Yet, if you know the right start, it will be fairly easy to deal with.
Start with the step that matches what you want to do:
- Create or change database tables for a plugin - Database migrations
- Add a custom DAL entity for a plugin table - Adding Custom Complex Data
- Read data through repositories and criteria - Reading Data
- Write data through repositories - Writing Data
- React to DAL write or entity events - Using Database Events
For custom plugin data, create the database table first with a migration, then add the DAL entity definition that maps to that table.