remove codeigniter
This commit is contained in:
@@ -8,7 +8,7 @@ class EmergencyContact extends BaseModel
|
||||
{
|
||||
protected $table = 'emergency_contacts';
|
||||
|
||||
// ✅ CI: useTimestamps = true (created_at/updated_at)
|
||||
// ✅ legacy: useTimestamps = true (created_at/updated_at)
|
||||
public $timestamps = true;
|
||||
|
||||
protected $fillable = [
|
||||
@@ -46,7 +46,7 @@ class EmergencyContact extends BaseModel
|
||||
}
|
||||
|
||||
/* =========================
|
||||
* CI method equivalents
|
||||
* legacy method equivalents
|
||||
* ========================= */
|
||||
|
||||
public static function getEmergencyContactsByStudentId(int $studentId)
|
||||
@@ -64,7 +64,7 @@ class EmergencyContact extends BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Your CI logic: (student_id = $studentId) OR (parent_id = $studentId)
|
||||
* Your legacy logic: (student_id = $studentId) OR (parent_id = $studentId)
|
||||
* Keeping it exactly as-is, even though the 2nd condition looks unusual.
|
||||
*/
|
||||
public static function getAllEmergencyContacts(int $studentId)
|
||||
|
||||
Reference in New Issue
Block a user