Commit 0406866
committed
feature #62792 [DoctrineBridge] Deprecate
This PR was merged into the 8.1 branch.
Discussion
----------
[DoctrineBridge] Deprecate `RegisterMappingsPass::$aliasMap`
| Q | A
| ------------- | ---
| Branch? | 8.1
| Bug fix? | no
| New feature? | no
| Deprecations? | yes
| Issues | -
| License | MIT
Namespace aliases have been deprecated from `doctrine/persistence` [2.3.0](https://github.com/doctrine/persistence/releases/tag/2.3.0) doctrine/persistence#204, and removed from [3.0.0](doctrine/persistence@7422aab#diff-65217b628918b27724f64d13ef152e91e8d5223c594e564f8583fb2045cb779f).
- DoctrineBundle accepts this parameter, but the method `Configuration::addEntityNamespace` has been removed in `dotrine/orm` 3.0.0, which make it broken. Removing in doctrine/DoctrineMongoDBBundle#971
- DoctrineMongoDBBundle accepts them but the namespace alias support is no longer supported. Removing in doctrine/DoctrineBundle#2169
- DoctrinePHPCRBundle removed usage of this parameter in doctrine/DoctrinePHPCRBundle@dc82197
Projects using the child classes of `RegisterMappingPass` never set an `$aliasMap`.
- [`FOSUserBundle`](https://github.com/FriendsOfSymfony/FOSUserBundle/blob/607a7fb975bc0c39bc2aa7e4ab8c52aded74d63c/src/FOSUserBundle.php#L46-L52)
Removing this parameters is a breaking change but could be already done in 8.1 as it is unsupported or broken for all the Doctrine bundles.
Commits
-------
4ecc888 [DoctrineBridge] Deprecate RegisterMappingsPass::$aliasMap, not supported by ORM and MongoDB ODMRegisterMappingsPass::$aliasMap (GromNaN)File tree
4 files changed
+18
-3
lines changed- src/Symfony/Bridge/Doctrine
- DependencyInjection/CompilerPass
4 files changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
106 | | - | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments