Schema Migrations

Class: Oro\Bundle\TranslationBundle\Migration\DeleteTranslationKeysQuery

Provides a useful way to delete custom translation keys during migration.


  • domain (string) - domain of translation keys to process removal by
  • translationKeys (array) - an array of translation key strings to remove


To remove custom keys in your migration, use method addQuery of Oro\Bundle\MigrationBundle\Migration\QueryBag.

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

An Oro\Bundle\MigrationBundle\Migration\QueryBag instance is usually available in Oro\Bundle\MigrationBundle\Migration\Migration::up method as second argument.

See migration details for more information.