File tree 4 files changed +28
-4
lines changed
lib/Doctrine/ORM/Tools/Console/Command
4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,13 @@ protected function configure()
73
73
by the ORM, you can use a DBAL functionality to filter the tables and sequences down
74
74
on a global level:
75
75
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
+ });
77
83
EOT
78
84
);
79
85
}
Original file line number Diff line number Diff line change @@ -33,7 +33,13 @@ protected function configure()
33
33
by the ORM, you can use a DBAL functionality to filter the tables and sequences down
34
34
on a global level:
35
35
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
+ });
37
43
EOT
38
44
);
39
45
}
Original file line number Diff line number Diff line change @@ -37,7 +37,13 @@ protected function configure()
37
37
by the ORM, you can use a DBAL functionality to filter the tables and sequences down
38
38
on a global level:
39
39
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
+ });
41
47
EOT
42
48
);
43
49
}
Original file line number Diff line number Diff line change @@ -61,7 +61,13 @@ protected function configure()
61
61
by the ORM, you can use a DBAL functionality to filter the tables and sequences down
62
62
on a global level:
63
63
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
+ });
65
71
EOT
66
72
);
67
73
}
You can’t perform that action at this time.
0 commit comments