Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
cc1916f
Bump actions/upload-artifact from 6 to 7
dependabot[bot] Mar 1, 2026
94a6c04
Bump actions/download-artifact from 7 to 8
dependabot[bot] Mar 1, 2026
57a3bf7
Bump doctrine/.github/.github/workflows/coding-standards.yml
dependabot[bot] Mar 22, 2026
17c304b
Bump doctrine/.github/.github/workflows/phpstan.yml
dependabot[bot] Mar 22, 2026
cffa418
Bump doctrine/.github/.github/workflows/documentation.yml
dependabot[bot] Mar 22, 2026
1c3c569
Bump doctrine/.github/.github/workflows/website-schema.yml
dependabot[bot] Mar 22, 2026
cafee79
Bump ramsey/composer-install from 3 to 4
dependabot[bot] Mar 22, 2026
f50315b
Group Doctrine workflow updates together (#2217)
greg0ire Mar 27, 2026
e09da41
Bump the doctrine group with 2 updates
dependabot[bot] Mar 27, 2026
78f87b5
Bump codecov/codecov-action from 5 to 6
dependabot[bot] Mar 27, 2026
c821933
Fix region_lifetime not applied to explicitly declared SLC regions
Mar 27, 2026
67d0146
Bump the doctrine group with 6 updates
dependabot[bot] Apr 5, 2026
7a26a24
Merge pull request #2223 from doctrine/dependabot/github_actions/2.18…
greg0ire Apr 5, 2026
79dd830
use complete version numbers in PHP requirements
xabbuh Apr 24, 2026
9898f36
Merge remote-tracking branch 'origin/2.18.x' into 3.2.x
ostrolucky Apr 26, 2026
d54c73e
Remove empty registerCommands override
tacman May 18, 2026
23588de
Fix coding standard: use aliased class name in RequiresMethod attribute
Copilot May 18, 2026
2873f16
Merge pull request #2233 from doctrine/copilot/fix-coding-standard-issue
greg0ire May 18, 2026
130c062
Merge pull request #2232 from tacman/codex/remove-empty-registercommands
greg0ire May 18, 2026
9670526
Add SECURITY.md to link to reporting policy and email.
beberlei May 26, 2026
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
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ updates:
labels:
- "CI"
target-branch: "2.18.x"
groups:
doctrine:
patterns:
- "doctrine/*"
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@13.1.0"
uses: "doctrine/.github/.github/workflows/coding-standards.yml@15.0.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@13.1.0"
uses: "doctrine/.github/.github/workflows/composer-lint.yml@15.0.0"
8 changes: 4 additions & 4 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
if: "${{ matrix.remove-doctrine-messenger }}"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"
uses: "ramsey/composer-install@v4"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist"
Expand All @@ -130,7 +130,7 @@ jobs:
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"

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

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

- name: "Upload to Codecov"
uses: "codecov/codecov-action@v5"
uses: "codecov/codecov-action@v6"
with:
directory: reports
env:
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@13.1.0"
uses: "doctrine/.github/.github/workflows/documentation.yml@15.0.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@13.1.0"
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@15.0.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/test-dev-stability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
tools: "flex"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"
uses: "ramsey/composer-install@v4"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist"
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@13.1.0"
uses: "doctrine/.github/.github/workflows/website-schema.yml@15.0.0"
8 changes: 8 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Security

If you find a Security bug in Doctrine, please follow our
[Security reporting guidelines](https://www.doctrine-project.org/policies/security.html#reporting).

Security vulnerabilities should be reported to security@doctrine-project.org
and not posted on the GitHub issue tracker of the project.

2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ private function getOrmEntityManagersNode(): ArrayNodeDefinition
->scalarNode('lock_path')->defaultValue('%kernel.cache_dir%/doctrine/orm/slc/filelock')->end()
->scalarNode('lock_lifetime')->defaultValue(60)->end()
->scalarNode('type')->defaultValue('default')->end()
->scalarNode('lifetime')->defaultValue(0)->end()
->scalarNode('lifetime')->defaultNull()->end()
->scalarNode('service')->end()
->scalarNode('name')->end()
->end()
Expand Down
7 changes: 5 additions & 2 deletions src/DependencyInjection/DoctrineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ private function loadOrmSecondLevelCache(array $entityManager, Definition $ormCo

$container
->setDefinition($regionId, new Definition(DefaultRegion::class))
->setArguments([$name, new Reference($driverId), $region['lifetime']]);
->setArguments([$name, new Reference($driverId), $region['lifetime'] ?? $entityManager['second_level_cache']['region_lifetime']]);
}

if ($regionType === 'filelock') {
Expand All @@ -1205,7 +1205,10 @@ private function loadOrmSecondLevelCache(array $entityManager, Definition $ormCo
$regionsDef->addMethodCall('getLockLifetime', [$name, $region['lock_lifetime']]);
}

$regionsDef->addMethodCall('setLifetime', [$name, $region['lifetime']]);
if ($region['lifetime'] !== null) {
$regionsDef->addMethodCall('setLifetime', [$name, $region['lifetime']]);
}

$slcFactoryDef->addMethodCall('setRegion', [$regionRef]);
}
}
Expand Down
5 changes: 0 additions & 5 deletions src/DoctrineBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\RegisterUidTypePass;
use Symfony\Bridge\Doctrine\DependencyInjection\Security\UserProvider\EntityFactory;
use Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension;
use Symfony\Component\Console\Application;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand Down Expand Up @@ -111,10 +110,6 @@ public function shutdown(): void
}
}

public function registerCommands(Application $application): void
{
}

public function getPath(): string
{
return dirname(__DIR__);
Expand Down
2 changes: 1 addition & 1 deletion tests/Middleware/IdleConnectionMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class IdleConnectionMiddlewareTest extends TestCase
{
#[RequiresMethod(\Symfony\Bridge\Doctrine\Middleware\IdleConnection\Driver::class, '__construct')]
#[RequiresMethod(IdleConnectionDriver::class, '__construct')]
public function testWrap(): void
{
/** @var ArrayObject<string, int> $connectionExpiries */
Expand Down