File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Upgrade to 3.2
2
2
3
+ ## Deprecate remaining ` Serializable ` implementation
4
+
5
+ Relying on ` SequenceGenerator ` implementing the ` Serializable ` is deprecated
6
+ because that interface won't be implemented in ORM 4 anymore.
7
+
8
+ The following methods are deprecated:
9
+
10
+ * ` SequenceGenerator::serialize() `
11
+ * ` SequenceGenerator::unserialize() `
12
+
3
13
## ` orm:schema-tool:update ` option ` --complete ` is deprecated
4
14
5
15
That option behaves as a no-op, and is deprecated. It will be removed in 4.0.
Original file line number Diff line number Diff line change 5
5
namespace Doctrine \ORM \Id ;
6
6
7
7
use Doctrine \DBAL \Connections \PrimaryReadReplicaConnection ;
8
+ use Doctrine \Deprecations \Deprecation ;
8
9
use Doctrine \ORM \EntityManagerInterface ;
9
10
use Serializable ;
10
11
@@ -65,8 +66,17 @@ public function getNextValue(): int
65
66
return $ this ->nextValue ;
66
67
}
67
68
69
+ /** @deprecated without replacement. */
68
70
final public function serialize (): string
69
71
{
72
+ Deprecation::trigger (
73
+ 'doctrine/orm ' ,
74
+ 'TODO ' ,
75
+ '%s() is deprecated, use __serialize() instead. %s won \'t implement the Serializable interface anymore in ORM 4. ' ,
76
+ __METHOD__ ,
77
+ self ::class,
78
+ );
79
+
70
80
return serialize ($ this ->__serialize ());
71
81
}
72
82
@@ -79,8 +89,17 @@ public function __serialize(): array
79
89
];
80
90
}
81
91
92
+ /** @deprecated without replacement. */
82
93
final public function unserialize (string $ serialized ): void
83
94
{
95
+ Deprecation::trigger (
96
+ 'doctrine/orm ' ,
97
+ 'TODO ' ,
98
+ '%s() is deprecated, use __unserialize() instead. %s won \'t implement the Serializable interface anymore in ORM 4. ' ,
99
+ __METHOD__ ,
100
+ self ::class,
101
+ );
102
+
84
103
$ this ->__unserialize (unserialize ($ serialized ));
85
104
}
86
105
You can’t perform that action at this time.
0 commit comments