apply the school year concept
Tests / PHPUnit (push) Failing after 1m19s

This commit is contained in:
root
2026-07-14 00:59:00 -04:00
parent 504c3bc9f9
commit feb1b29a32
73 changed files with 4288 additions and 620 deletions
+8 -2
View File
@@ -40,8 +40,14 @@ class SchoolYearModel extends Model
public function active(): ?array
{
return $this->where('status', 'active')
$rows = $this->where('status', 'active')
->orderBy('id', 'DESC')
->first();
->findAll(2);
if (count($rows) !== 1) {
return null;
}
return $rows[0];
}
}