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
+5 -2
View File
@@ -3,9 +3,12 @@
namespace App\Models;
use CodeIgniter\Model;
use App\Models\Concerns\SchoolYearAutoFillTrait;
class EnrollmentModel extends Model
{
use SchoolYearAutoFillTrait;
protected $table = 'enrollments';
protected $primaryKey = 'id';
@@ -32,7 +35,7 @@ class EnrollmentModel extends Model
'student_id' => 'required|integer',
'class_section_id' => 'permit_empty|integer',
'parent_id' => 'required|integer',
'school_year' => 'required|string|max_length[25]',
'school_year' => 'required|string|max_length[9]',
'enrollment_date' => 'required|valid_date',
'withdrawal_date' => 'permit_empty|valid_date',
'is_withdrawn' => 'permit_empty|in_list[0,1]',
@@ -56,7 +59,7 @@ class EnrollmentModel extends Model
'school_year' => [
'required' => 'School year is required',
'string' => 'School year must be a string',
'max_length' => 'School year must not exceed 25 characters',
'max_length' => 'School year must not exceed 9 characters',
],
'enrollment_date' => [
'required' => 'Enrollment date is required',