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: doctrine/dbal#6787
Current behavior
It triggers deprecation warnings, even though related tables don't match the criteria.
Here as text:
Remaining indirect deprecation notices (4)
1x: Using nullable columns (GeoEintragTeilVonBeziehungVonEintrag.geoeintragteilvonbeziehung_id) in a primary key index is deprecated. (Table.php:182 called by Table.php:199, https://github.com/doctrine/dbal/pull/6787, package doctrine/dbal)
1x in DemoTest::test from Tests
1x: Using nullable columns (GeoEintragTeilVonBeziehungVonEintrag.geoeintrag_id) in a primary key index is deprecated. (Table.php:182 called by Table.php:199, https://github.com/doctrine/dbal/pull/6787, package doctrine/dbal)
1x in DemoTest::test from Tests
1x: Using nullable columns (GeoEintragTeilVonBeziehungZuEintrag.geoeintragteilvonbeziehung_id) in a primary key index is deprecated. (Table.php:182 called by Table.php:199, https://github.com/doctrine/dbal/pull/6787, package doctrine/dbal)
1x in DemoTest::test from Tests
1x: Using nullable columns (GeoEintragTeilVonBeziehungZuEintrag.geoeintrag_id) in a primary key index is deprecated. (Table.php:182 called by Table.php:199, https://github.com/doctrine/dbal/pull/6787, package doctrine/dbal)
1x in DemoTest::test from Tests
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
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: doctrine/dbal#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