Skip to content

Commit cee74fa

Browse files
committed
Merge remote-tracking branch 'origin/2.20.x' into 3.5.x
2 parents 7c347b8 + 492745d commit cee74fa

File tree

6 files changed

+55
-14
lines changed

6 files changed

+55
-14
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ on:
2424

2525
jobs:
2626
coding-standards:
27-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@13.0.0"
27+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@13.1.0"

.github/workflows/composer-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ on:
1717
jobs:
1818
composer-lint:
1919
name: "Composer Lint"
20-
uses: "doctrine/.github/.github/workflows/composer-lint.yml@13.0.0"
20+
uses: "doctrine/.github/.github/workflows/composer-lint.yml@13.1.0"

.github/workflows/continuous-integration.yml

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CI"
1+
name: "CI: PHPUnit"
22

33
on:
44
pull_request:
@@ -25,7 +25,14 @@ env:
2525

2626
jobs:
2727
phpunit-smoke-check:
28-
name: "PHPUnit with SQLite"
28+
name: >
29+
SQLite -
30+
${{ format('PHP {0} - DBAL {1} - ext. {2} - proxy {3}',
31+
matrix.php-version || 'Ø',
32+
matrix.dbal-version || 'Ø',
33+
matrix.extension || 'Ø',
34+
matrix.proxy || 'Ø'
35+
) }}
2936
runs-on: "ubuntu-22.04"
3037

3138
strategy:
@@ -123,7 +130,7 @@ jobs:
123130
ENABLE_NATIVE_LAZY_OBJECTS: ${{ matrix.native_lazy }}
124131

125132
- name: "Upload coverage file"
126-
uses: "actions/upload-artifact@v5"
133+
uses: "actions/upload-artifact@v6"
127134
with:
128135
name: "phpunit-${{ matrix.extension }}-${{ matrix.php-version }}-${{ matrix.dbal-version }}-${{ matrix.deps }}-${{ matrix.native_lazy }}-coverage"
129136
path: "coverage*.xml"
@@ -164,7 +171,13 @@ jobs:
164171

165172

166173
phpunit-postgres:
167-
name: "PHPUnit with PostgreSQL"
174+
name: >
175+
${{ format('PostgreSQL {0} - PHP {1} - DBAL {2} - ext. {3}',
176+
matrix.postgres-version || 'Ø',
177+
matrix.php-version || 'Ø',
178+
matrix.dbal-version || 'Ø',
179+
matrix.extension || 'Ø'
180+
) }}
168181
runs-on: "ubuntu-22.04"
169182
needs: "phpunit-smoke-check"
170183

@@ -232,14 +245,20 @@ jobs:
232245
run: "vendor/bin/phpunit -c ci/github/phpunit/pdo_pgsql.xml --coverage-clover=coverage.xml"
233246

234247
- name: "Upload coverage file"
235-
uses: "actions/upload-artifact@v5"
248+
uses: "actions/upload-artifact@v6"
236249
with:
237250
name: "${{ github.job }}-${{ matrix.postgres-version }}-${{ matrix.php-version }}-${{ matrix.dbal-version }}-${{ matrix.extension }}-coverage"
238251
path: "coverage.xml"
239252

240253

241254
phpunit-mariadb:
242-
name: "PHPUnit with MariaDB"
255+
name: >
256+
${{ format('MariaDB {0} - PHP {1} - DBAL {2} - ext. {3}',
257+
matrix.mariadb-version || 'Ø',
258+
matrix.php-version || 'Ø',
259+
matrix.dbal-version || 'Ø',
260+
matrix.extension || 'Ø'
261+
) }}
243262
runs-on: "ubuntu-22.04"
244263
needs: "phpunit-smoke-check"
245264

@@ -300,14 +319,20 @@ jobs:
300319
run: "vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml --coverage-clover=coverage.xml"
301320

302321
- name: "Upload coverage file"
303-
uses: "actions/upload-artifact@v5"
322+
uses: "actions/upload-artifact@v6"
304323
with:
305324
name: "${{ github.job }}-${{ matrix.mariadb-version }}-${{ matrix.extension }}-${{ matrix.php-version }}-${{ matrix.dbal-version }}-coverage"
306325
path: "coverage.xml"
307326

308327

309328
phpunit-mysql:
310-
name: "PHPUnit with MySQL"
329+
name: >
330+
${{ format('MySQL {0} - PHP {1} - DBAL {2} - ext. {3}',
331+
matrix.mysql-version || 'Ø',
332+
matrix.php-version || 'Ø',
333+
matrix.dbal-version || 'Ø',
334+
matrix.extension || 'Ø'
335+
) }}
311336
runs-on: "ubuntu-22.04"
312337
needs: "phpunit-smoke-check"
313338

@@ -397,7 +422,7 @@ jobs:
397422
ENABLE_SECOND_LEVEL_CACHE: 1
398423

399424
- name: "Upload coverage files"
400-
uses: "actions/upload-artifact@v5"
425+
uses: "actions/upload-artifact@v6"
401426
with:
402427
name: "${{ github.job }}-${{ matrix.mysql-version }}-${{ matrix.extension }}-${{ matrix.php-version }}-${{ matrix.dbal-version }}-coverage"
403428
path: "coverage*.xml"
@@ -420,7 +445,7 @@ jobs:
420445
fetch-depth: 2
421446

422447
- name: "Download coverage files"
423-
uses: "actions/download-artifact@v6"
448+
uses: "actions/download-artifact@v7"
424449
with:
425450
path: "reports"
426451

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ on:
1717
jobs:
1818
documentation:
1919
name: "Documentation"
20-
uses: "doctrine/.github/.github/workflows/documentation.yml@13.0.0"
20+
uses: "doctrine/.github/.github/workflows/documentation.yml@13.1.0"

.github/workflows/release-on-milestone-closed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
release:
10-
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@13.0.0"
10+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@13.1.0"
1111
secrets:
1212
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
1313
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}

docs/en/reference/inheritance-mapping.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,22 @@ Example:
208208
// ...
209209
}
210210
211+
.. code-block:: xml
212+
213+
<doctrine-mapping>
214+
<entity name="MyProject\Model\Person" inheritance-type="SINGLE_TABLE">
215+
<discriminator-column name="discr" type="string" />
216+
<discriminator-map>
217+
<discriminator-mapping value="person" class="MyProject\Model\Person"/>
218+
<discriminator-mapping value="employee" class="MyProject\Model\Employee"/>
219+
</discriminator-map>
220+
</entity>
221+
</doctrine-mapping>
222+
223+
<doctrine-mapping>
224+
<entity name="MyProject\Model\Employee">
225+
</entity>
226+
</doctrine-mapping>
211227
212228
In this example, the ``#[DiscriminatorMap]`` specifies that in the
213229
discriminator column, a value of "person" identifies a row as being of type

0 commit comments

Comments
 (0)