Skip to content

IBX-11939: Added a shared SchemaBuilderEvent subscriber for plain ORM entities - #853

Closed
Steveb-p wants to merge 2 commits into
base/ibx-11939-orm-entities-schema-subscriber-4.6-merged-5.0from
feature/orm-entities-schema-subscriber-5.0
Closed

Steveb-p wants to merge 2 commits into
base/ibx-11939-orm-entities-schema-subscriber-4.6-merged-5.0from
feature/orm-entities-schema-subscriber-5.0

Conversation

@Steveb-p

@Steveb-p Steveb-p commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-11939

Related PRs:

Description:

5.0 counterpart of #852, see there for what OrmEntitiesSchemaSubscriber does. Targets base/ibx-11939-orm-entities-schema-subscriber-4.6-merged-5.0 (5.0 with #852 merged in), so the diff only shows what changes for 5.0:

  • final readonly class with promoted constructor properties, and arrow functions instead of closures.
  • array_values() around the foreign key column lists, since DBAL 4 requires a list.
  • The test sticks to APIs present in both DBAL 3 and 4 (getCreateTablesSQL(), the SQLite platform taken from a real connection) and enables mapping XSD validation, so it carries over to 6.0 with PHPUnit 11 changes only.

Uses 5.0's readonly class / promoted constructor style, passes array_values() of the foreign key
columns (DBAL 4 requires a list), and the test uses APIs present in both DBAL 3 and 4
(getCreateTablesSQL(), connection-provided SQLite platform) with XSD validation enabled, so it
carries over to 6.0 unchanged.
@sonarqubecloud

Copy link
Copy Markdown

@Steveb-p Steveb-p closed this Sep 29, 2026
@Steveb-p
Steveb-p deleted the feature/orm-entities-schema-subscriber-5.0 branch September 29, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants