Fixed many feature failures around preferences, route coverage, administrator enrollment, assignment section names, attendance tracking controller access, finance PDF generation, and finance notification logging.
API CI/CD / Validate (composer + pint) (push) Successful in 3m15s
API CI/CD / Test (PHPUnit) (push) Failing after 5m4s
API CI/CD / Build frontend assets (push) Successful in 1m3s
API CI/CD / Security audit (push) Failing after 49s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
API CI/CD / Validate (composer + pint) (push) Successful in 3m15s
API CI/CD / Test (PHPUnit) (push) Failing after 5m4s
API CI/CD / Build frontend assets (push) Successful in 1m3s
API CI/CD / Security audit (push) Failing after 49s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
This commit is contained in:
@@ -8,6 +8,18 @@ class BaseModel extends Model
|
||||
{
|
||||
private static ?array $tableColumnsCache = null;
|
||||
|
||||
public function __construct(array $attributes = [])
|
||||
{
|
||||
$keyName = $this->getKeyName();
|
||||
$keyValue = $attributes[$keyName] ?? null;
|
||||
|
||||
parent::__construct($attributes);
|
||||
|
||||
if ($keyValue !== null && ! array_key_exists($keyName, $this->attributes)) {
|
||||
$this->setAttribute($keyName, $keyValue);
|
||||
}
|
||||
}
|
||||
|
||||
public function getFillable(): array
|
||||
{
|
||||
$fillable = parent::getFillable();
|
||||
|
||||
Reference in New Issue
Block a user