fix school year for all tables
Tests / PHPUnit (push) Failing after 1m20s

This commit is contained in:
root
2026-07-18 14:45:38 -04:00
parent 4db8334a3c
commit 716cc8b8d3
125 changed files with 2315 additions and 81 deletions
+4 -1
View File
@@ -4,9 +4,12 @@ namespace App\Models;
use CodeIgniter\Database\BaseBuilder;
use CodeIgniter\Model;
use App\Models\Concerns\SchoolYearAutoFillTrait;
class StudentClassModel extends Model
{
use SchoolYearAutoFillTrait;
protected $table = 'student_class';
protected $primaryKey = 'id';
protected $returnType = 'array';
@@ -32,7 +35,7 @@ class StudentClassModel extends Model
protected $validationRules = [
'student_id' => 'required|integer',
'class_section_id'=> 'permit_empty|integer',
'school_year' => 'required|max_length[20]',
'school_year' => 'required|string|max_length[9]',
'is_event_only' => 'permit_empty|in_list[0,1]',
'updated_by' => 'permit_empty|integer',
];