remove codeigniter
This commit is contained in:
@@ -11,7 +11,7 @@ class Staff extends BaseModel
|
||||
protected $table = 'staff';
|
||||
|
||||
/**
|
||||
* CI: timestamps managed manually (created_at/updated_at set by caller/controller)
|
||||
* legacy: timestamps managed manually (created_at/updated_at set by caller/controller)
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
@@ -66,7 +66,7 @@ class Staff extends BaseModel
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* CI-compatible methods
|
||||
* legacy-compatible methods
|
||||
* ============================================================
|
||||
*/
|
||||
|
||||
@@ -104,7 +104,7 @@ class Staff extends BaseModel
|
||||
|
||||
$userId = (int) $data['user_id'];
|
||||
|
||||
// Resolve school_year fallback like your CI logic
|
||||
// Resolve school_year fallback like your legacy logic
|
||||
$schoolYear = $data['school_year'] ?? null;
|
||||
if ($schoolYear === null) {
|
||||
$existingAny = static::query()
|
||||
@@ -177,7 +177,7 @@ class Staff extends BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* CI-compatible boolean wrapper if you want the same signature.
|
||||
* legacy-compatible boolean wrapper if you want the same signature.
|
||||
*/
|
||||
public static function upsertBool(array $data): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user