This commit is contained in:
@@ -4,9 +4,12 @@
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
use App\Models\Concerns\SchoolYearAutoFillTrait;
|
||||
|
||||
class CurrentFlagModel extends Model
|
||||
{
|
||||
use SchoolYearAutoFillTrait;
|
||||
|
||||
protected $table = 'current_flag';
|
||||
protected $primaryKey = 'id';
|
||||
protected $allowedFields = [
|
||||
@@ -28,6 +31,10 @@ class CurrentFlagModel extends Model
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
protected $validationRules = [
|
||||
'school_year' => 'required|string|max_length[9]',
|
||||
];
|
||||
|
||||
|
||||
// Fields that are allowed to be inserted or updated
|
||||
|
||||
|
||||
Reference in New Issue
Block a user