You are browsing documentation for version 5.0 of OroCommerce, OroCRM, and OroPlatform, maintained until August 2024 and supported until March 2026. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.
See our Release Process documentation for more information on the currently supported and upcoming releases.
It provides a useful way to delete custom translation keys during migration.
domain (string) - a domain of translation keys to be removed
translationKeys (array) - an array of translation key strings to be removed
To remove custom keys in your migration, use the addQuery method of
$queryBag->addQuery( new Oro\Bundle\TranslationBundle\Migration\DeleteTranslationKeysQuery( 'custom_domain', ['translation.key1.to.remove', 'translation.key2.to.remove' ] ) );
Oro\Bundle\MigrationBundle\Migration\QueryBag instance is usually available in the
Oro\Bundle\MigrationBundle\Migration\Migration::up method as the second argument.
See migration details for more information.