Skip to content

Commit 1df60f4

Browse files
authored
Merge branch 'doctrine-extensions:main' into patch-1
2 parents 132d483 + 22418b1 commit 1df60f4

File tree

164 files changed

+1332
-1649
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1332
-1649
lines changed

.github/workflows/qa-dockerfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v4
3232

3333
- name: Build "php" container
34-
uses: isbang/[email protected].1
34+
uses: isbang/[email protected].2
3535
with:
3636
compose-file: "./compose.yaml"
3737
services: |

.php-cs-fixer.dist.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@
8383
'static_lambda' => true,
8484
'strict_param' => true,
8585
'ternary_to_null_coalescing' => true,
86+
'trailing_comma_in_multiline' => [
87+
'elements' => [
88+
'arrays',
89+
],
90+
],
8691
// @todo: Change the following rule to `true` in the next major release.
8792
'void_return' => false,
8893
])

CHANGELOG.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,28 @@ a release.
1818
---
1919

2020
## [Unreleased]
21+
### Deprecated
22+
- Sluggable: Annotation-specific mapping parameters (#2837)
23+
24+
### Fixed
25+
- Fix regression with `doctrine/dbal` >= 4.0 that caused MariaDB to improperly attempt LONGTEXT casting in `TranslationWalker` (issue #2887)
26+
27+
## [3.17.1] - 2024-10-07
28+
### Fixed
29+
- Removed invalid `@note` annotation from `AbstractLogEntry::$data`, which was causing issues in projects using annotation parsers
30+
31+
## [3.17.0] - 2024-10-06
32+
### Added
33+
- Support for `doctrine/dbal` >= 4.0 with all extensions, except Loggable
34+
35+
### Changed
36+
- Extend `Throwable` from `Gedmo\Exception` interface
2137

22-
## [3.16.1]
38+
## [3.16.1] - 2024-06-25
2339
### Fixed
2440
- Restructure the SqlWalkerCompat trait to fix optimized autoloading
2541

26-
## [3.16.0]
42+
## [3.16.0] - 2024-06-24
2743
### Added
2844
- Support for `doctrine/orm` 3
2945
- Blameable: Added UUID in allowed types list for Blameable fields in Annotation
@@ -39,7 +55,7 @@ a release.
3955
- Tree: Cascade remove not being triggered on entity children at `MaterializedPath::removeNode()`.
4056
- Tree: Materialize Path strategy when using autogenerated identifiers.
4157

42-
## [3.15.0]
58+
## [3.15.0] - 2024-02-12
4359
### Added
4460
- SoftDeleteable: `Gedmo\SoftDeleteable\Event\PreSoftDeleteEventArgs` and
4561
`Gedmo\SoftDeleteable\Event\PostSoftDeleteEventArgs` classes.
@@ -60,7 +76,7 @@ a release.
6076
- Add conflict against "doctrine/orm" >= 3.
6177
- Add conflict against "doctrine/dbal" => 4.
6278

63-
## [3.14.0]
79+
## [3.14.0] - 2023-12-03
6480
### Added
6581
- Support for Symfony 7
6682
- Tree: Added `@template` and `@template-extends` annotations to the Tree repositories

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ can be easily implemented using Mapping extension to handle the additional metad
6666

6767
### Version Compatibility
6868

69-
* DBAL: `^3.2`
69+
* DBAL: `^3.2` (for all the extensions) or `^4.0` (for all the extensions, except **Loggable**)
7070
* ORM: `^2.14` or `^3.0`
7171
* MongoDB ODM: `^2.3`
7272

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"require-dev": {
5555
"doctrine/annotations": "^1.13 || ^2.0",
5656
"doctrine/cache": "^1.11 || ^2.0",
57-
"doctrine/dbal": "^3.2",
57+
"doctrine/dbal": "^3.7 || ^4.0",
5858
"doctrine/doctrine-bundle": "^2.3",
5959
"doctrine/mongodb-odm": "^2.3",
6060
"doctrine/orm": "^2.14.0 || ^3.0",
@@ -73,7 +73,7 @@
7373
},
7474
"conflict": {
7575
"doctrine/annotations": "<1.13 || >=3.0",
76-
"doctrine/dbal": "<3.2 || >=4.0",
76+
"doctrine/dbal": "<3.7 || >=5.0",
7777
"doctrine/mongodb-odm": "<2.3 || >=3.0",
7878
"doctrine/orm": "<2.14.0 || 2.16.0 || 2.16.1 || >=4.0"
7979
},

doc/attributes.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ Optional Parameters:
474474

475475
- **suffix** - An optional suffix for the generated slug
476476

477-
- **handlers** - Unused with attributes
477+
- **handlers** - Deprecated to be removed in 4.0, this parameter is unused with attributes in favor of
478+
the `SlugHandler` attribute
478479

479480
Basic Example:
480481

@@ -552,8 +553,8 @@ class Article
552553

553554
#### `#[Gedmo\Mapping\Annotation\SlugHandlerOption]`
554555

555-
The `SlugHandlerOption` attribute is not supported when using attributes for configuration. Instead, the options
556-
can be configured directly in the `SlugHandler` attribute's **options** parameter.
556+
> [!WARNING]
557+
> The `SlugHandlerOption` attribute is deprecated and will be removed in 4.0. Using this attribute is not supported, and instead, the options can be configured directly in the `SlugHandler` attribute's **options** parameter.
557558
558559
### Soft Deleteable Extension
559560

0 commit comments

Comments
 (0)