-
-
Save nmallare/266a36d7cc4dc4bd870b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AE\Bundle\CustomSettingsBundle\Migrations\Schema\v1_1; | |
use Doctrine\DBAL\Schema\Schema; | |
use Oro\Bundle\EntityConfigBundle\Migration\UpdateEntityConfigEntityValueQuery; | |
use Oro\Bundle\MigrationBundle\Migration\Installation; | |
use Oro\Bundle\MigrationBundle\Migration\QueryBag; | |
/** | |
* @SuppressWarnings(PHPMD.TooManyMethods) | |
* @SuppressWarnings(PHPMD.ExcessiveClassLength) | |
*/ | |
class UpdateRankStagePermissions implements Installation | |
{ | |
/** | |
* @inheritDoc | |
*/ | |
public function up(Schema $schema, QueryBag $queries) | |
{ | |
$queries->addQuery( | |
new UpdateEntityConfigEntityValueQuery( | |
'AE\Bundle\CustomSettingsBundle\Entity\AccountRank', | |
'security', | |
'permissions', | |
null | |
) | |
); | |
$queries->addQuery( | |
new UpdateEntityConfigEntityValueQuery( | |
'AE\Bundle\CustomSettingsBundle\Entity\AccountStage', | |
'security', | |
'permissions', | |
null | |
) | |
); | |
} | |
/** | |
* @inheritDoc | |
*/ | |
public function getMigrationVersion() | |
{ | |
return 'v1_1'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment