- Create folder dev/repositories
- Copy both BlankRepository.php and BlankContract.php into that folder
- Register dev/repositories into app.ini
- Foreach model, create its own repository class, extending BaseRepository and override function model() like below:
return \namespace_name\ModelName::class;
- Using function call_user_func_array to call static function find() of AP Framework to execute queries
- Using array manipulating functions to examine and deal with input data