Skip to content

IBX-11939: Replaced ibexa.installer.schema_builder_event with an opt-in ibexa.installer.doctrine_migrations - #892

Merged
Steveb-p merged 3 commits into
4.6from
feature/doctrine-migrations-opt-in-4.6
Oct 19, 2026
Merged

Steveb-p merged 3 commits into
4.6from
feature/doctrine-migrations-opt-in-4.6

Conversation

@Steveb-p

@Steveb-p Steveb-p commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-11939

Related PRs:

Description:

ibexa.installer.schema_builder_event.enabled: false turned out to be hard to explain: you turn the new Doctrine Migrations install path on by turning the legacy one off. This replaces it with a positive opt-in:

ibexa:
    installer:
        doctrine_migrations: true

ibexa.installer.doctrine_migrations is a bundle configuration node built with canBeEnabled(), so doctrine_migrations: { enabled: true } works too. It defaults to false, which keeps ibexa:install on SchemaBuilderEvent, same as before. Once the default flips in a later major, the node becomes canBeDisabled().

IbexaCoreExtension hands the resolved value to CoreInstaller through the ibexa.installer.doctrine_migrations.enabled container parameter. CoreInstaller's $schemaBuilderEventEnabled argument became $doctrineMigrationsEnabled, with both importSchema() and importData() inverted to match.

There's no BC layer for the old key on purpose: it came in with #785 and no release contains it yet. Configuring it now fails with Unrecognized option "schema_builder_event" under "ibexa.installer".

ibexa/installer's product installers get CoreInstaller's arguments through parent: as named ones, so ibexa/installer#239 renames the argument there as well. With only one of the two in, the container doesn't build (method "__construct()" has no argument named "$doctrineMigrationsEnabled"), same as with #785 and ibexa/installer#213.

The two new IbexaCoreExtensionTest cases bring the unit suite to 239 direct deprecations out of the allowed 240: every extension load triggers 2 of them, from the old-style setDeprecated() calls in Configuration\Parser\Common.

Checked with a fresh ibexa:install ibexa-commerce on 4.6 (MySQL 8.0 and PostgreSQL 16): with doctrine_migrations: true all 25 migrations end up executed; with false the legacy path runs and none are.

Documentation:

The option to document is ibexa.installer.doctrine_migrations (default false), replacing ibexa.installer.schema_builder_event.enabled. When it's true, ibexa:install installs the database schema and the core data by running the Ibexa-tagged Doctrine Migrations instead of dispatching SchemaBuilderEvent; that needs ibexa/doctrine-migrations. ibexa/documentation-developer#3337 doesn't mention either key yet.

…" setting with an opt-in "ibexa.installer.doctrine_migrations"
@Steveb-p
Steveb-p marked this pull request as ready for review October 16, 2026 11:22
@Steveb-p
Steveb-p requested a review from a team October 16, 2026 11:30
@Steveb-p Steveb-p added Ready for review Doc needed The changes require some documentation labels Oct 16, 2026
…ling back in the extension

Covered the nested "enabled" syntax of "ibexa.installer.doctrine_migrations" in the extension test as well.
@sonarqubecloud

Copy link
Copy Markdown

@tomaszszopinski tomaszszopinski self-assigned this Oct 19, 2026
@Steveb-p
Steveb-p merged commit dc0feb1 into 4.6 Oct 19, 2026
38 of 39 checks passed
@Steveb-p
Steveb-p deleted the feature/doctrine-migrations-opt-in-4.6 branch October 19, 2026 12:13
bnowak added a commit that referenced this pull request Oct 20, 2026
* IBX-11939: Replaced `ibexa.installer.schema_builder_event` with an opt-in `ibexa.installer.doctrine_migrations` (#892)

* IBX-12861: Fixed cache keys of content and version info loaded with version number 0 (#893)

The persistence cache built the key suffix with a falsy check, so version 0
shared the key of the current version: it returned the current version on a
warm cache and threw NotFound on a cold one. Only `null` now maps to the
current version; keys for `null` and positive version numbers are unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* IBX-12861: Declared exceptions thrown by ContentService draft and publish methods (#895)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Paweł Niedzielski <pawel.niedzielski@ibexa.co>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Doc needed The changes require some documentation Improvement Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants