Files
camelia-orm/tests/Unit/Support
dgarcia 1478b8f7f7
Tests / PHP 8.4 (push) Failing after 5m57s
fix(typecaster): send booleans to the driver as 1/0
PDO with ATTR_EMULATE_PREPARES = false sends a native PHP bool as an empty
string. MariaDB rejects it on a TINYINT column with "Incorrect integer
value: ''", so every boolean column was unwritable through the ORM:
inserting a model with a bool property always failed.

toDatabaseValue() now maps bool to 1/0. Other scalars, enums, dates and
BigDecimal keep their existing handling.

Covered by TypeCasterDatabaseValueTest.
2026-11-15 14:21:40 -03:00
..