mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
False positive for "Using nullable columns (xxx) in a primary key index is deprecated."? #7540
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @k00ni on GitHub (Aug 7, 2025).
Bug Report
Summary
When running PHPUnit tests it shows false-positive deprecation warnings triggered by DBAL. I hope this is the correct repository, because this currently happens when also using Doctrine.
Ref: https://github.com/doctrine/dbal/pull/6787
Current behavior
It triggers deprecation warnings, even though related tables don't match the criteria.
Here as text:
All mentioned columns are being defined as
NOT NULL, for instance:Expected behavior
No deprecation warnings at all.
How to reproduce
I added a reproducer:
https://github.com/k00ni/dbal-nullable-columns-primary-key
There is a basic workflow to demonstrate the deprecations:
https://github.com/k00ni/dbal-nullable-columns-primary-key/actions/runs/16804524077/job/47593473139#step:9:127
@greg0ire commented on GitHub (Aug 7, 2025):
I think by "Doctrine" you mean the ORM.
This is an ORM issue, and I'm pretty sure I have a fix. Transferred.