---
title: "doctrine/doctrine-fixtures-bundle 4.0.0 Breaking Changes"
description: "What each doctrine/doctrine-fixtures-bundle release removed, renamed or changed: 18 breaking changes in 1 version on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/doctrine/doctrine-fixtures-bundle
last_updated: 2026-12-04
---

# doctrine/doctrine-fixtures-bundle breaking changes

doctrine/doctrine-fixtures-bundle 4.0.0 (December 5, 2024) is its newest release with breaking changes, 18 of them. The first: Deprecated code removed in doctrine/doctrine-fixtures-bundle 4.0.0. Every breaking API change we have recorded in doctrine/doctrine-fixtures-bundle on Packagist: 18 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.3.1`, released December 3, 2025. MIT license. [Source repository](https://github.com/doctrine/DoctrineFixturesBundle)

Its 4.0.0 release requires [PHP 8.1](https://since.dev/calendar/php/8.1.md) or later. [PHP end of life dates](https://since.dev/calendar/php.md).

## doctrine/doctrine-fixtures-bundle 4.0.0 breaking changes

doctrine/doctrine-fixtures-bundle 4.0.0, released December 5, 2024: 18 breaking changes.

- **Removed**  

Previously deprecated code has been removed, so code that still uses it will fail. [github.com](https://github.com/doctrine/DoctrineFixturesBundle/releases/tag/4.0.0)
- **Removed**  

The package no longer supports doctrine/data-fixtures version 1, so projects using it must upgrade that dependency. [github.com](https://github.com/doctrine/DoctrineFixturesBundle/releases/tag/4.0.0)
- **Removed** `Doctrine\Bundle\FixturesBundle\DependencyInjection\CompilerPass\FixturesCompilerPass`  

Doctrine\\Bundle\\FixturesBundle\\DependencyInjection\\CompilerPass\\FixturesCompilerPass was removed in doctrine/doctrine-fixtures-bundle 4.0.0 [packagist.org](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle#4.0.0)
- **Removed** `Doctrine\Bundle\FixturesBundle\DependencyInjection\CompilerPass\PurgerFactoryCompilerPass`  

Doctrine\\Bundle\\FixturesBundle\\DependencyInjection\\CompilerPass\\PurgerFactoryCompilerPass was removed in doctrine/doctrine-fixtures-bundle 4.0.0 [packagist.org](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle#4.0.0)
- **Removed** `Doctrine\Bundle\FixturesBundle\DependencyInjection\DoctrineFixturesExtension`  

Doctrine\\Bundle\\FixturesBundle\\DependencyInjection\\DoctrineFixturesExtension was removed in doctrine/doctrine-fixtures-bundle 4.0.0 [packagist.org](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle#4.0.0)
- **Behavior changed**  

Classes that can be made final are now final, so code that extends them will break. [github.com](https://github.com/doctrine/DoctrineFixturesBundle/releases/tag/4.0.0)
- **Behavior changed**  

Dependency injection classes are now marked internal, so code outside the bundle should not depend on them. [github.com](https://github.com/doctrine/DoctrineFixturesBundle/releases/tag/4.0.0)
- **Configuration changed**  

The minimum supported Symfony version is now 5.4 and the minimum PHP version is 8.1. [github.com](https://github.com/doctrine/DoctrineFixturesBundle/releases/tag/4.0.0)
- **Signature changed**  

Methods now declare native return types, which can break subclasses or callers that rely on the old signatures. [github.com](https://github.com/doctrine/DoctrineFixturesBundle/releases/tag/4.0.0)
- **Signature changed** `Doctrine\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand`  

Was class LoadDataFixturesDoctrineCommand extends DoctrineCommand; now final class LoadDataFixturesDoctrineCommand extends DoctrineCommand. [packagist.org](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle#4.0.0)
- **Signature changed** `Doctrine\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand::__construct`  

Was public function \_\_construct(SymfonyFixturesLoader $fixturesLoader, ?ManagerRegistry $doctrine = null, array $purgerFactories = \[\]); now public function \_\_construct(private SymfonyFixturesLoader $fixturesLoader, ManagerRegistry... [packagist.org](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle#4.0.0)
- **Signature changed** `Doctrine\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand::configure`  

Was protected function configure(); now protected function configure(): void. [packagist.org](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle#4.0.0)
- **Signature changed** `Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle`  

Was class DoctrineFixturesBundle extends Bundle; now final class DoctrineFixturesBundle extends Bundle. [packagist.org](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle#4.0.0)
- **Signature changed** `Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::build`  

Was public function build(ContainerBuilder $container); now public function build(ContainerBuilder $container): void. [packagist.org](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle#4.0.0)
- **Signature changed** `Doctrine\Bundle\FixturesBundle\Loader\SymfonyFixturesLoader`  

Was final class SymfonyFixturesLoader extends SymfonyBridgeLoader; now final class SymfonyFixturesLoader extends Loader. [packagist.org](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle#4.0.0)
- **Signature changed** `Doctrine\Bundle\FixturesBundle\Loader\SymfonyFixturesLoader::createFixture`  

Was protected function createFixture($class): FixtureInterface; now protected function createFixture(string $class): FixtureInterface. [packagist.org](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle#4.0.0)
- **Signature changed** `Doctrine\Bundle\FixturesBundle\Purger\ORMPurgerFactory::createForEntityManager`  

Was public function createForEntityManager(?string $emName, EntityManagerInterface $em, array $excluded = \[\], bool $purgeWithTruncate = false): PurgerInterface; now public function createForEntityManager(string|null $emName... [packagist.org](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle#4.0.0)
- **Signature changed** `PurgerFactory`  

PurgerFactory is now generic, which can change type signatures for code that implements or extends it. [github.com](https://github.com/doctrine/DoctrineFixturesBundle/releases/tag/4.0.0)

## Related packages

- [doctrine/annotations](https://since.dev/packages/packagist/doctrine/annotations.md)
- [doctrine/coding-standard](https://since.dev/packages/packagist/doctrine/coding-standard.md)
- [doctrine/collections](https://since.dev/packages/packagist/doctrine/collections.md)
- [doctrine/dbal](https://since.dev/packages/packagist/doctrine/dbal.md)
- [doctrine/doctrine-bundle](https://since.dev/packages/packagist/doctrine/doctrine-bundle.md)
- [doctrine/doctrine-migrations-bundle](https://since.dev/packages/packagist/doctrine/doctrine-migrations-bundle.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
