Issues (39)

src/Templates/model.php (1 issue)

Labels
Severity
1
<?php namespace {namespace}\Models;
0 ignored issues
show
A parse error occurred: Syntax error, unexpected '}', expecting '{' on line 1 at column 26
Loading history...
2
3
use CodeIgniter\Model;
4
5
/**
6
 * Short description of this class usages
7
 *
8
 * @class {name}
9
 * @generated_by CI-Recharge
10
 * @package {namespace}
11
 * @extend Model
12
 * @created_at {created_at}
13
 */
14
15
class {name} extends Model
16
{
17
    /**
18
     * Table Configuration
19
     */
20
    protected $table = '{table}';
21
    protected $primaryKey = '{primary_id}';
22
23
    /**
24
     * Model & Table Column Customization
25
     */
26
    protected $allowedFields = [{attributes}];
27
    protected $useTimestamps = true;
28
    protected $dateFormat = 'datetime';
29
    protected $createdField = 'created_at';
30
    protected $updatedField = 'updated_at';
31
    {delete_field}
32
33
    /**
34
     * Return Configuration
35
     */
36
    protected $returnType = 'object';
37
    protected $useSoftDeletes = {soft_delete};
38
    protected $validationRules = {rules};
39
    protected $validationMessages = [];
40
    protected $skipValidation = true;
41
42
    /**
43
     * Events Configurations
44
     */
45
    protected $beforeInsert = [];
46
47
    protected $afterInsert = [];
48
49
    protected $beforeUpdate = [];
50
51
    protected $afterUpdate = [];
52
53
    protected $afterFind = [];
54
55
    protected $afterDelete = [];
56
}
57
58