Table of Contents
This pages contains information about model changes
Introduction
Indefero 1.x uses Pluf_Model for accessing SQL-based data. The following information should serve as an entry point in case you want to mess with that.
Adding new models
If you want to add a new table / model, you need to do the following steps:
- Create a model object directly underknees
src/IDF - If your new model has relations to other existing models, add them to
src/IDF/relations.php - Add a new migration script for the model (
src/IDF/Migrations/) and ensure that you configured both, a way to upgrade to and a way to downgrade from your change - Add your model to the list of models in
src/IDF/Migrations/Install.phpfor the initial installation - Add your model to the list of models in
src/IDF/Migrations/Backup.phpfor json-based backups
accountmanagementengine