Schema Migrations

Class: Oro\Bundle\TranslationBundle\Migration\DeleteTranslationKeysQuery

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 Oro\Bundle\MigrationBundle\Migration\QueryBag.

    new Oro\Bundle\TranslationBundle\Migration\DeleteTranslationKeysQuery(
        ['', '' ]

An 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.