Hi!
I’ve been attempting to run Mautic v6.0.3 (Apache) in a containerized environment on QNAP Container Station using Docker Compose. The stack includes separate containers for the app, cron jobs, and queue worker, along with MariaDB as the database.
After completing the UI setup and running database migrations, I’m encountering a persistent schema validation error related to the DynamicContentBundle
:
The entity-class Mautic\DynamicContentBundle\Entity\DynamicContentLeadData mapping is invalid: * The association #dynamicContent refers to a field that is not defined as an association or doesn't exist.
This error occurs during:
-
doctrine:schema:validate
-
Runtime logs whenever Mautic attempts to use Doctrine ORM
-
Certain UI actions like saving campaigns or segments
This appears to be a mismatch between the database schema and Doctrine entity mapping within the Dynamic Content plugin. Even if the feature isn’t actively used, the plugin is bundled and enabled by default in v6. This causes Doctrine to check its mappings, which fail due to either:
-
A missing or incomplete migration
-
A broken inverse mapping in the entity class
This issue completely blocks the platform from working reliably:
-
Segments and campaigns don’t function properly
-
Message queues can’t be processed
-
Schema validation always fails
-
Errors are continuously logged, making it hard to test any other feature
I’ve tried:
-
Disabling the plugin (not straightforward — no
bundles.php
file in v6) -
Manually deleting the plugin folder (not present in
/plugins
) -
Clearing the cache
-
Skipping schema validation — which still leads to runtime ORM errors
If anyone has experience on how they have got around this - or what I’m doing wrong, please let me know. Any help would be really appreciated.