Files
camelia-orm/tests/Unit
dgarcia 4faad2c46e
Tests / PHP 8.4 (push) Failing after 4m31s
fix(repository): hydrate enum columns instead of failing on read
Repository::castDatabaseValue() called TypeCaster::cast() with the enum's
class name as the "type", so any row of a model declaring #[Enum] threw
"Cannot assign string to property X of type Y" the moment it was read.
Writes worked, which is why this survived 1.0.0: the select path is only
exercised on read.

castDatabaseValue() now delegates to TypeCaster::castEnum() when the
property declares one, and keeps the null passthrough. Covered by
EnumHydrationTest with a scalar value and a null.
2026-11-15 13:35:27 -03:00
..
2026-11-15 10:58:11 -03:00
2026-11-15 10:58:11 -03:00
2026-11-15 10:58:11 -03:00
2026-11-15 10:58:11 -03:00