diff --git a/CHANGELOG.md b/CHANGELOG.md index 70d7b33..f2b6ad1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ Changelog All notable changes are documented here. The project follows [Semantic Versioning](https://semver.org): minor releases add features and deprecations, major releases remove them. +## 1.0.0-RC5 (unreleased) + +* `cache:clear` no longer fails when the cached container was compiled by an older version of the bundle, as happens when releases share a cache directory. + ## 1.0.0-RC4 (2026-10-19) * `propel:form:generate` writes form types that load on Symfony 7 and 8: their `buildForm()` and `configureOptions()` methods declare the `: void` return type, and they no longer set the obsolete `name` option. diff --git a/src/PropelBundle.php b/src/PropelBundle.php index 3732b8a..ba21a25 100644 --- a/src/PropelBundle.php +++ b/src/PropelBundle.php @@ -47,7 +47,9 @@ public function boot(): void $this->configureConnections(); // the container only resets the services it has instantiated - $this->container->get('propel.instance_pool_resetter'); + if ($this->container->has('propel.instance_pool_resetter')) { + $this->container->get('propel.instance_pool_resetter'); + } if ($this->container->getParameter('propel.logging')) { try {