File tree Expand file tree Collapse file tree
lib/Doctrine/ORM/Tools/Console/Command Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,13 @@ protected function configure()
7373by the ORM, you can use a DBAL functionality to filter the tables and sequences down
7474on a global level:
7575
76- $config->setFilterSchemaAssetsExpression($regexp);
76+ $config->setSchemaAssetsFilter(function (string|AbstractAsset $assetName): bool {
77+ if ($assetName instanceof AbstractAsset) {
78+ $assetName = $assetName->getName();
79+ }
80+
81+ return !str_starts_with($assetName, 'audit_');
82+ });
7783EOT
7884 );
7985 }
Original file line number Diff line number Diff line change @@ -33,7 +33,13 @@ protected function configure()
3333by the ORM, you can use a DBAL functionality to filter the tables and sequences down
3434on a global level:
3535
36- $config->setFilterSchemaAssetsExpression($regexp);
36+ $config->setSchemaAssetsFilter(function (string|AbstractAsset $assetName): bool {
37+ if ($assetName instanceof AbstractAsset) {
38+ $assetName = $assetName->getName();
39+ }
40+
41+ return !str_starts_with($assetName, 'audit_');
42+ });
3743EOT
3844 );
3945 }
Original file line number Diff line number Diff line change @@ -37,7 +37,13 @@ protected function configure()
3737by the ORM, you can use a DBAL functionality to filter the tables and sequences down
3838on a global level:
3939
40- $config->setFilterSchemaAssetsExpression($regexp);
40+ $config->setSchemaAssetsFilter(function (string|AbstractAsset $assetName): bool {
41+ if ($assetName instanceof AbstractAsset) {
42+ $assetName = $assetName->getName();
43+ }
44+
45+ return !str_starts_with($assetName, 'audit_');
46+ });
4147EOT
4248 );
4349 }
Original file line number Diff line number Diff line change @@ -61,7 +61,13 @@ protected function configure()
6161by the ORM, you can use a DBAL functionality to filter the tables and sequences down
6262on a global level:
6363
64- $config->setFilterSchemaAssetsExpression($regexp);
64+ $config->setSchemaAssetsFilter(function (string|AbstractAsset $assetName): bool {
65+ if ($assetName instanceof AbstractAsset) {
66+ $assetName = $assetName->getName();
67+ }
68+
69+ return !str_starts_with($assetName, 'audit_');
70+ });
6571EOT
6672 );
6773 }
You can’t perform that action at this time.
0 commit comments