v1.9.1
Bug Fixes
- fix(Model): support composite primary keys with auto-increment columns
- Preserve explicitly-set primary-key values instead of overwriting them with column defaults.
- Temporarily narrow
primaryKeyColumnto the auto-increment column during INSERT so Laminas RowGateway can refresh the inserted row correctly. - Restore the full composite primary key after INSERT and rebuild
primaryKeyDatafor non-auto-increment PK columns. - Fix the "no primary key" default-value fallback to consider all PK columns.
Tests
- Added
CompositePrimaryKeyTestwith create/update/delete scenarios forPRIMARY KEY (id, tenant_id)tables.
Verification
OK (121 tests, 432 assertions)