remove codeigniter
This commit is contained in:
@@ -11,7 +11,7 @@ class StudentAllergy extends BaseModel
|
||||
protected $table = 'student_allergies';
|
||||
|
||||
/**
|
||||
* CI: timestamps disabled
|
||||
* legacy: timestamps disabled
|
||||
*/
|
||||
public $timestamps = true;
|
||||
|
||||
@@ -51,13 +51,13 @@ class StudentAllergy extends BaseModel
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* CI-compatible methods
|
||||
* legacy-compatible methods
|
||||
* ============================================================
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get all allergies for a given student.
|
||||
* CI: getAllergiesByStudentId()
|
||||
* legacy: getAllergiesByStudentId()
|
||||
*/
|
||||
public static function getAllergiesByStudentId(int $studentId): array
|
||||
{
|
||||
@@ -70,7 +70,7 @@ class StudentAllergy extends BaseModel
|
||||
|
||||
/**
|
||||
* Get allergies for multiple students, grouped by student_id.
|
||||
* CI: getAllergiesByStudentIds()
|
||||
* legacy: getAllergiesByStudentIds()
|
||||
*/
|
||||
public static function getAllergiesByStudentIds(array $studentIds): array
|
||||
{
|
||||
@@ -93,7 +93,7 @@ class StudentAllergy extends BaseModel
|
||||
|
||||
/* ============================================================
|
||||
* Validation rules helper (FormRequest/controller)
|
||||
* Mirrors CI validation intent
|
||||
* Mirrors legacy validation intent
|
||||
* ============================================================
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user