Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
29fef83
Bump doctrine/.github/.github/workflows/coding-standards.yml
dependabot[bot] Nov 24, 2025
c3f19e4
Bump doctrine/.github/.github/workflows/phpstan.yml
dependabot[bot] Nov 24, 2025
8084183
Bump doctrine/.github/.github/workflows/release-on-milestone-closed.yml
dependabot[bot] Nov 24, 2025
8fd8847
Bump doctrine/.github/.github/workflows/website-schema.yml
dependabot[bot] Nov 24, 2025
295cffa
Bump doctrine/.github/.github/workflows/documentation.yml
dependabot[bot] Nov 24, 2025
325266e
Bump doctrine/.github/.github/workflows/documentation.yml
dependabot[bot] Nov 29, 2025
33f49a6
Bump doctrine/.github/.github/workflows/phpstan.yml
dependabot[bot] Nov 29, 2025
26e43ee
Bump doctrine/.github/.github/workflows/website-schema.yml
dependabot[bot] Nov 29, 2025
fba370a
Bump doctrine/.github/.github/workflows/release-on-milestone-closed.yml
dependabot[bot] Nov 29, 2025
5dce423
Bump doctrine/.github/.github/workflows/composer-lint.yml
dependabot[bot] Nov 29, 2025
41887ea
Merge pull request #2149 from doctrine/dependabot/github_actions/2.18…
greg0ire Nov 29, 2025
6138e84
Merge pull request #2148 from doctrine/dependabot/github_actions/2.18…
greg0ire Nov 29, 2025
b004e9a
Merge pull request #2147 from doctrine/dependabot/github_actions/2.18…
greg0ire Nov 29, 2025
88d860a
Merge pull request #2146 from doctrine/dependabot/github_actions/2.18…
greg0ire Nov 29, 2025
8fa1034
Merge pull request #2145 from doctrine/dependabot/github_actions/2.18…
greg0ire Nov 29, 2025
bd650d4
chore: show parameters in name of CI jobs
alexislefebvre Nov 27, 2025
203bfdd
Merge pull request #2142 from alexislefebvre/chore-show-parameters-in…
greg0ire Nov 30, 2025
68c9ab8
Bump doctrine/.github/.github/workflows/coding-standards.yml
dependabot[bot] Dec 1, 2025
b105485
Bump actions/checkout from 5 to 6
dependabot[bot] Dec 1, 2025
b5eb5bc
Bump actions/download-artifact from 6 to 7
dependabot[bot] Dec 15, 2025
f7b4bdc
Bump actions/upload-artifact from 5 to 6
dependabot[bot] Dec 15, 2025
4b3d951
Merge pull request #2168 from doctrine/dependabot/github_actions/2.18…
greg0ire Dec 15, 2025
0cf3392
Merge pull request #2167 from doctrine/dependabot/github_actions/2.18…
SenseException Dec 17, 2025
ff26443
Detect bundle containing only MappedSuperclass annotations (#2171)
jtattevin Dec 18, 2025
c8980d0
Document command remapping
greg0ire Dec 20, 2025
0ff098b
Merge pull request #2173 from greg0ire/document-command-remapping
greg0ire Dec 20, 2025
7979b1e
Merge remote-tracking branch 'origin/2.18.x' into 3.1.x
greg0ire Dec 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ on:
jobs:
coding-standards:
name: "Coding Standards"
uses: "doctrine/.github/.github/workflows/coding-standards.yml@v12.2.0"
uses: "doctrine/.github/.github/workflows/coding-standards.yml@13.1.0"
with:
composer-options: "--prefer-dist --prefer-stable"
2 changes: 1 addition & 1 deletion .github/workflows/composer-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ on:
jobs:
composer-lint:
name: "Composer Lint"
uses: "doctrine/.github/.github/workflows/composer-lint.yml@v12.2.0"
uses: "doctrine/.github/.github/workflows/composer-lint.yml@13.1.0"
21 changes: 14 additions & 7 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

name: "Continuous Integration"
name: "CI: PHPUnit"

on:
pull_request:
Expand Down Expand Up @@ -27,7 +26,15 @@ on:

jobs:
phpunit:
name: "PHPUnit"
name: >
${{ format('PHP {0} - Sf {1} - deps {2} - stab. {3}',
matrix.php-version || 'Ø',
matrix.symfony-require || 'Ø',
matrix.dependencies || 'Ø',
matrix.stability || 'Ø'
) }}
${{ matrix.remove-orm && ' - remove ORM' }}
${{ matrix.remove-doctrine-messenger && ' - remove Messenger' }}
runs-on: "ubuntu-latest"
env:
SYMFONY_REQUIRE: ${{matrix.symfony-require}}
Expand Down Expand Up @@ -88,7 +95,7 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v5"
uses: "actions/checkout@v6"
with:
fetch-depth: 2

Expand Down Expand Up @@ -123,7 +130,7 @@ jobs:
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"

- name: "Upload coverage file"
uses: "actions/upload-artifact@v5"
uses: "actions/upload-artifact@v6"
with:
name: "phpunit-${{ matrix.php-version }}-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}.coverage"
path: "coverage.xml"
Expand All @@ -138,12 +145,12 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v5"
uses: "actions/checkout@v6"
with:
fetch-depth: 2

- name: "Download coverage files"
uses: "actions/download-artifact@v6"
uses: "actions/download-artifact@v7"
with:
path: "reports"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ on:
jobs:
documentation:
name: "Documentation"
uses: "doctrine/.github/.github/workflows/documentation.yml@v12.2.0"
uses: "doctrine/.github/.github/workflows/documentation.yml@13.1.0"
2 changes: 1 addition & 1 deletion .github/workflows/release-on-milestone-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
release:
name: "Git tag, release & create merge-up PR"
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@v12.2.0"
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@13.1.0"
secrets:
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ on:
jobs:
static-analysis:
name: "Static Analysis"
uses: "doctrine/.github/.github/workflows/phpstan.yml@v12.2.0"
uses: "doctrine/.github/.github/workflows/phpstan.yml@13.1.0"
2 changes: 1 addition & 1 deletion .github/workflows/test-dev-stability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v5"
uses: "actions/checkout@v6"
with:
fetch-depth: 2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/website-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ on:
jobs:
json-validate:
name: "Validate JSON schema"
uses: "doctrine/.github/.github/workflows/website-schema.yml@v12.2.0"
uses: "doctrine/.github/.github/workflows/website-schema.yml@13.1.0"
78 changes: 78 additions & 0 deletions docs/en/doctrine-console.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
Doctrine Console
================

Some Doctrine packages such as ``doctrine/dbal`` and ``doctrine/orm``
provide useful console commands to interact with your database and your
entities:

- `Doctrine DBAL Commands
<https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/cli-tools.html#cli-tools>`_
- `Doctrine ORM Commands
<https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/tools.html#doctrine-console>`_

This bundle automatically registers those commands, but it renames them
in the process so as to group them under the ``doctrine:`` namespace.

Note that the bundle also provide some additional commands that are not
part of the aforementioned packages.

Command Name Mapping
--------------------

The following table shows the mapping between the original Doctrine command
names and the names used by this bundle:

+--------------------------------------------+---------------------------------------+
| Bundle Command Name | Original Doctrine Command Name |
+============================================+=======================================+
| ``doctrine:query:sql`` | ``dbal:run-sql`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:cache:clear-metadata`` | ``orm:clear-cache:metadata`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:cache:clear-query`` | ``orm:clear-cache:query`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:cache:clear-result`` | ``orm:clear-cache:result`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:cache:clear-collection-region`` | ``orm:clear-cache:region:collection`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:cache:clear-entity-region`` | ``orm:clear-cache:region:entity`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:cache:clear-query-region`` | ``orm:clear-cache:region:query`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:mapping:convert`` | ``orm:convert-mapping`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:schema:create`` | ``orm:schema-tool:create`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:schema:drop`` | ``orm:schema-tool:drop`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:schema:update`` | ``orm:schema-tool:update`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:ensure-production-settings`` | ``orm:ensure-production-settings`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:mapping:info`` | ``orm:info`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:mapping:describe`` | ``orm:mapping:describe`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:query:dql`` | ``orm:run-dql`` |
+--------------------------------------------+---------------------------------------+
| ``doctrine:schema:validate`` | ``orm:validate-schema`` |
+--------------------------------------------+---------------------------------------+

Additionally, the bundle provides the following commands:

- ``doctrine:database:create``
- ``doctrine:database:drop``
- ``doctrine:mapping:import``

To get a list of all available Doctrine commands, run:

.. code-block:: console

php bin/console list doctrine

It is possible to get help on any specific command. For example,
to get help on the ``doctrine:schema:update`` command, run:

.. code-block:: console

php bin/console doctrine:schema:update --help
1 change: 1 addition & 0 deletions docs/en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ configuration options, console commands and even a web debug toolbar collector.
.. toctree::

installation
doctrine-console
entity-listeners
event-listeners
custom-id-generators
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace Fixtures\Bundles\MappedSuperclassBundle\Entity;

/** @ORM\MappedSuperclass() */
class TestAnnotationEntity
{
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
public int|null $id = null;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

namespace Fixtures\Bundles\MappedSuperclassBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

class MappedSuperclassBundle extends Bundle
{
}