You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Allow string[] as `$sortByField` and `$direction` parameter in `\Gedmo\Tree\Entity\Repository\NestedTreeRepository::reorder` and `\Gedmo\Tree\Entity\Repository\NestedTreeRepository::reorderAll`
30
+
31
+
- Make doctrine/annotations an optional dependency.
32
+
- Allow string[] as `$sortByField` and `$direction` parameter in `\Gedmo\Tree\Entity\Repository\NestedTreeRepository::reorder` and `\Gedmo\Tree\Entity\Repository\NestedTreeRepository::reorderAll`
27
33
28
34
### Deprecated
35
+
29
36
- Do not add type-hinted parameters `Gedmo\SoftDeleteable\Event\PreSoftDeleteEventArgs` and
30
37
`Gedmo\SoftDeleteable\Event\PostSoftDeleteEventArgs` classes to `preSoftDelete` and `postSoftDelete` events.
31
38
- The `createLifecycleEventArgsInstance()` method on `Gedmo\Mapping\Event\AdapterInterface`
32
39
implementations is deprecated, use your own subclass of `Doctrine\Persistence\Event\LifecycleEventArgs` as needed.
33
40
34
41
## [3.14.0]
42
+
35
43
### Added
44
+
36
45
- Support for Symfony 7
37
46
- Tree: Added `@template` and `@template-extends` annotations to the Tree repositories
38
47
39
48
### Changed
49
+
40
50
- Dropped support for PHP < 7.4
41
51
- Dropped support for Symfony < 5.4
42
52
- Dropped support for doctrine/dbal < 3.2
43
53
44
54
### Deprecated
45
-
- Calling `Gedmo\Mapping\Event\Adapter\ORM::getObjectManager()` and `getObject()` on EventArgs that do not implement `getObjectManager()` and `getObject()` (such as old EventArgs implementing `getEntityManager()` and `getEntity()`)
55
+
56
+
- Calling `Gedmo\Mapping\Event\Adapter\ORM::getObjectManager()` and `getObject()` on EventArgs that do not implement `getObjectManager()` and `getObject()` (such as old EventArgs implementing `getEntityManager()` and `getEntity()`)
46
57
- Calling `Gedmo\Uploadable\Event\UploadableBaseEventArgs::getEntityManager()` and `getEntity()`. Call `getObjectManager()` and `getObject()` instead.
47
58
48
59
## [3.13.0] - 2023-09-06
60
+
49
61
### Fixed
62
+
50
63
- References: fixed condition in `XML` Driver that did not allow to retrieve from the entity definition the `mappedBy` and `inversedBy` fields.
51
64
- Fix bug collecting metadata for inherited mapped classes
52
65
53
66
## [3.12.0] - 2023-07-08
67
+
54
68
### Added
69
+
55
70
- Tree: `setSibling()` and `getSibling()` methods in the `Node` interface through the BC `@method` annotation
56
71
- Tree: Support array of fields and directions in the `$sortByField` and `$direction` parameters at `AbstractTreeRepository::recover()`
57
72
- Loggable: Support for composite identifiers
58
73
59
74
### Changed
75
+
60
76
- Named arguments have precedence over the values passed in the `$data` array in annotation classes at `Gedmo\Mapping\Annotation\`
61
77
namespace
62
78
- Removed conflict against "doctrine/cache" < 1.11, as this library is not used
63
79
- Return type from `TranslationProxy::__set()` (from `TranslationProxy` to `void`)
64
80
65
81
### Fixed
82
+
66
83
- Tree: Creation of dynamic `Node::$sibling` property, which is deprecated as of PHP >= 8.2
67
84
- Return type from `TranslationProxy::__set()` in order to honor its original signature (`void`)
68
85
69
86
### Deprecated
87
+
70
88
- Tree: Not implementing `Node` interface in classes that are used as nodes
71
89
- Implementing the `Gedmo\Tool\WrapperInterface::getIdentifier()` method without the second argument (`$flatten`) is deprecated and will
72
90
be required in version 4.0
73
91
74
92
## [3.11.1] - 2023-02-20
93
+
75
94
### Fixed
95
+
76
96
- Loggable: Remove unfixable deprecation when extending `LoggableListener`
77
97
- Remove unfixable deprecations when extending repository classes
78
98
- Fix error caused by the attempt of "doctrine/annotations" parsing a `@note` annotation
79
99
80
100
## [3.11.0] - 2023-01-26
101
+
81
102
### Added
103
+
82
104
- Tree: [NestedSet] Added "base" property for tree level annotation
83
105
- Tree: [NestedSet] Added `$options` as parameter 2 in `getPathQueryBuilder()` to specify whether you want the starting node included or not
84
106
- Tree: [NestedSet] Added `getPathAsString()` method to entity repository
@@ -88,17 +110,20 @@ a release.
88
110
- Tree: [NestedSet] Verify and recover wrong levels in nested set
89
111
90
112
### Added
113
+
91
114
- Tree: Add `Nested::ALLOWED_NODE_POSITIONS` constant in order to expose the available node positions
92
115
- Support for `doctrine/collections` 2.0
93
116
- Support for `doctrine/event-manager` 2.0
94
117
- Loggable: Add `LogEntryInterface` interface in order to be implemented by log entry models
95
118
96
119
### Fixed
120
+
97
121
- Sortable: Fix return value check of Comparable interface (#2541)
98
122
- Uploadable: Retrieve the correct metadata when uploading entities of different classes (#2071)
99
123
- Translatable: Fix property existence check at `TranslatableListener::getTranslatableLocale()`
100
124
101
125
### Deprecated
126
+
102
127
- In order to close the API, `@final` and `@internal` annotations were added to all non base classes, which means that extending
103
128
these classes is deprecated and can not be inherited in version 4.0.
104
129
- Sortable: Accepting a return type other than "integer" from `Comparable::compareTo()` is deprecated in `SortableListener::postFlush()`.
@@ -112,61 +137,80 @@ a release.
112
137
instead.
113
138
114
139
## [3.10.0] - 2022-11-14
140
+
115
141
### Changed
142
+
116
143
- Bump "doctrine/event-manager" dependency from ^1.0 to ^1.2.
117
144
118
145
### Fixed
146
+
119
147
- Tree: TreeRoot without rootIdentifierMethod when calling getNextSiblings (#2518)
120
148
- Sortable: Fix duplicated positions when manually updating position on more than one object (#2439)
121
149
122
150
## [3.9.0] - 2022-09-22
151
+
123
152
### Fixed
153
+
124
154
- Tree: Allow sorting children by a ManyToOne relation (#2492)
125
155
- Tree: Fix passing `null` to `abs()` function
126
156
- Timestampable: Use an attribute in Timestampable attribute docs
127
157
128
158
### Deprecated
159
+
129
160
- Tree: Passing `null` as argument 8 to `Nested::shiftRangeRL()`
130
161
131
162
## [3.8.0] - 2022-07-17
163
+
132
164
### Added
165
+
133
166
- Sluggable: Add support for `DateTimeImmutable` fields
134
167
- Tree: [NestedSet]`childrenQueryBuilder()` to allow specifying sort order separately for each field
135
168
- Tree: [NestedSet] Added option to reorder only direct children in `reorder()` method
136
169
137
170
### Changed
171
+
138
172
- Tree: In `ClosureTreeRepository::removeFromTree()` and `NestedTreeRepository::removeFromTree()` when something fails in the transaction, it uses the `code` from the original exception to construct the `\Gedmo\Exception\RuntimeException` instance instead of `null`.
139
173
140
174
### Fixed
175
+
141
176
- Sluggable: Cast slug to string before passing it as argument 2 to `preg_match()` (#2473)
142
177
- Sortable: [SortableGroup] Fix sorting date columns in SQLite (#2462).
143
178
- PHPDoc of `AbstractMaterializedPath::removeNode()` and `AbstractMaterializedPath::getChildren()`
144
179
- Retrieving the proper metadata cache from Doctrine when using a CacheWarmer.
145
180
146
181
## [3.7.0] - 2022-05-17
182
+
147
183
### Added
184
+
148
185
- Add support for doctrine/persistence 3
149
186
150
187
### Changed
188
+
151
189
- Removed call to deprecated `ClassMetadataFactory::getCacheDriver()` method.
152
190
- Dropped support for doctrine/mongodb-odm < 2.3.
153
191
- Make doctrine/cache an optional dependency.
154
192
155
193
### Fixed
194
+
156
195
- Loggable: Fix `appendNumber` renaming for files without extension (#2228)
157
196
158
197
## [3.6.0] - 2022-03-19
198
+
159
199
### Added
200
+
160
201
- Translatable: Add defaultTranslationValue option to allow null or string value (#2167). TranslatableListener can hydrate object properties with null value, but it may cause a Type error for non-nullable getter upon a missing translation.
161
202
162
203
### Fixed
204
+
163
205
- Uploadable: `FileInfoInterface::getSize()` return type declaration (#2413).
164
206
- Tree: Setting a new Tree Root when Tree Parent is `null`.
165
207
- Tree: update cache key used by Closure to match Doctrine's one (#2416).
166
208
- Tree: persist order does not affect entities on Closure (#2432)
167
209
168
210
## [3.5.0] - 2022-01-10
211
+
169
212
### Added
213
+
170
214
- SoftDeleteable: Support to use annotations as attributes on PHP >= 8.0.
171
215
- Blameable: Support to use annotations as attributes on PHP >= 8.0.
172
216
- IpTraceable: Support to use annotations as attributes on PHP >= 8.0.
- In order to use a custom cache for storing configuration of an extension, the user has to call `setCacheItemPool()`
206
253
on the extension listener passing an instance of `Psr\Cache\CacheItemPoolInterface`.
207
254
208
255
## [3.4.0] - 2021-12-05
256
+
209
257
### Added
258
+
210
259
- PHP 8 Attributes support for Doctrine MongoDB to document & traits.
211
260
- Support for doctrine/dbal >=3.2.
212
261
- Timestampable: Support to use annotations as attributes on PHP >= 8.0.
213
262
- Loggable: Support to use annotations as attributes on PHP >= 8.0.
214
263
215
264
### Changed
265
+
216
266
- Translatable: Dropped support for other values than "true", "false", "1" and "0" in the `fallback` attribute of the `translatable`
217
267
element in the XML mapping.
218
268
- Tree: Dropped support for other values than "true", "false", "1" and "0" in the `activate-locking` attribute of the `tree`
@@ -223,7 +273,9 @@ a release.
223
273
- The third argument of `Gedmo\SoftDeleteable\Query\TreeWalker\Exec\MultiTableDeleteExecutor::__construct()` requires a `Doctrine\ORM\Mapping\ClassMetadata` instance.
224
274
225
275
## [3.3.1] - 2021-11-18
276
+
226
277
### Fixed
278
+
227
279
- Translatable: Using ORM/ODM attribute mapping and translatable annotations.
228
280
- Tree: Missing support for `tree-path-hash` fields in XML mapping.
229
281
- Tree: Check for affected rows at `ClosureTreeRepository::cleanUpClosure()` and `Closure::updateNode()`.
@@ -232,14 +284,18 @@ a release.
232
284
- Loggable: Missing support for `versioned` fields at `attribute-override` in XML mapping.
233
285
234
286
## [3.3.0] - 2021-11-15
287
+
235
288
### Added
289
+
236
290
- Support to use Translatable annotations as attributes on PHP >= 8.0.
237
291
238
292
### Deprecated
293
+
239
294
-`Gedmo\Mapping\Driver\File::$_paths` property and `Gedmo\Mapping\Driver\File::setPaths()` method are deprecated and will
240
295
be removed in version 4.0, as they are not used.
241
296
242
297
### Fixed
298
+
243
299
- Value passed in the `--config` option to `fix-cs` Composer script.
244
300
- Return value for `replaceRelative()` and `replaceInverseRelative()` at `Gedmo\Sluggable\Mapping\Event\Adapter\ODM` if the
245
301
query result does not implement `Doctrine\ODM\MongoDB\Iterator\Iterator`.
@@ -248,40 +304,55 @@ a release.
248
304
As `Doctrine\ODM\MongoDB\UnitOfWork` from doctrine/mongodb-odm still uses `spl_object_hash()`, all `spl_object_hash()` calls were replaced by `spl_object_id()` to make it work with both ORM and ODM managers.
249
305
250
306
## [3.2.0] - 2021-10-05
307
+
251
308
### Added
309
+
252
310
- PHP 8 Attributes for Doctrine ORM to entities & traits (#2251)
253
311
254
312
### Fixed
313
+
255
314
- Removed legacy checks targeting older versions of PHP (#2201)
256
315
- Added missing XSD definitions (#2244)
257
316
- Replaced undefined constants from `Doctrine\DBAL\Types\Type` at `Gedmo\Translatable\Mapping\Event\Adapter\ORM::foreignKey()` (#2250)
258
317
- Add conflict against "doctrine/orm" >=2.10 in order to guarantee the schema extension (see https://github.com/doctrine/orm/pull/8852) (#2255)
- Use path_separator when removing children (#2217)
268
331
269
332
## [3.0.4] - 2021-03-27
333
+
270
334
### Fixed
335
+
271
336
- Add hacky measure to resolve incompatibility with DoctrineBundle 2.3 [#2211](https://github.com/doctrine-extensions/DoctrineExtensions/pull/2211)
272
337
273
338
## [3.0.3] - 2021-01-23
339
+
274
340
### Fixed
341
+
275
342
- Add PHP 8 compatibility to `composer.json`, resolving minor function parameter deprecations [#2194](https://github.com/Atlantic18/DoctrineExtensions/pull/2194)
276
343
277
344
## [3.0.2] - 2021-01-23
345
+
278
346
- Ignore; tag & version mismatch
279
347
280
348
## [3.0.1] - 2021-01-23
349
+
281
350
- Ignore; wrong branch published
282
351
283
352
## [3.0.0] - 2020-09-23
353
+
284
354
### Notable & Breaking Changes
355
+
285
356
- Minimum PHP version requirement of 7.2
286
357
- Source files moved from `/lib/Gedmo` to `/src`
287
358
- Added compatibility for `doctrine/common` 3.0 and `doctrine/persistence` 2.0
@@ -292,18 +363,25 @@ a release.
292
363
Changes below marked ⚠️ may also be breaking, if you have extended DoctrineExtensions.
293
364
294
365
### MongoDB
366
+
295
367
- Requires the `ext-mongodb` PHP extension. Usage of `ext-mongo` is deprecated and will be removed in the next major version.
296
368
- Minimum Doctrine MongoDB ODM requirement of 2.0
297
369
- Usages of `\MongoDate` replaced with `MongoDB\BSON\UTCDateTime`
298
370
299
371
### Global / Shared
372
+
300
373
#### Fixed
374
+
301
375
- Removed `null` parameter from `Doctrine\Common\Cache\Cache::save()` calls (#1996)
302
376
303
377
### Tree
378
+
304
379
#### Fixed
380
+
305
381
- The value of path source property is cast to string type for Materialized Path Tree strategy (#2061)
306
382
307
383
### SoftDeleteable
384
+
308
385
#### Changed
386
+
309
387
- ⚠️ Generate different Date values based on column type (#2115)
0 commit comments