cast extended models when loading from database

This commit is contained in:
Gregory Letellier
2025-01-09 12:00:25 +01:00
parent d961d2a80f
commit 293eb9e555
3 changed files with 31 additions and 21 deletions

View File

@@ -116,6 +116,8 @@ test("extending model",function()
$row = $qbs->find(1);
expect($row->id)->toBe(1);
expect($row->col1)->toBe("test");
expect($row)->toBeInstanceOf(Test::class);
});
test("order by", function(){