mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00

- update CI process to include quality stage (tests + code review) - add captainhook to install git pre-commit & pre-push hooks - remove .devcontainer Dockerfile to use project's docker-compose services: all services can now be started automatically using vscode - update docs/setup-development.md
48 lines
793 B
PHP
48 lines
793 B
PHP
<?php namespace Tests\Support\Models;
|
|
|
|
use CodeIgniter\Model;
|
|
|
|
class ExampleModel extends Model
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $table = 'factories';
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $primaryKey = 'id';
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $returnType = 'object';
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $useSoftDeletes = false;
|
|
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
protected $allowedFields = ['name', 'uid', 'class', 'icon', 'summary'];
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $useTimestamps = true;
|
|
|
|
/**
|
|
* @var mixed[]
|
|
*/
|
|
protected $validationRules = [];
|
|
/**
|
|
* @var mixed[]
|
|
*/
|
|
protected $validationMessages = [];
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $skipValidation = false;
|
|
}
|