doctrine / DoctrineFixturesBundle

Symfony integration for the doctrine/data-fixtures library
MIT License
2.44k stars 201 forks source link

Since symfony/dependency-injection 6.4: "Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader" is deprecated, use dependency injection in your fixtures instead. #420

Open ruudk opened 6 months ago

ruudk commented 6 months ago

How can we silence this deprecation? We're not using the ContainerAwareLoader.

We're using:

symfony/doctrine-bridge               v6.4.0
doctrine/data-fixtures                1.7.0
doctrine/doctrine-fixtures-bundle     3.5.1

I saw this problem being predicted in https://github.com/doctrine/DoctrineFixturesBundle/pull/395 but I don't think there is a solution yet.

derrabus commented 6 months ago

The warning should be gone if you upgrade the bridge to v7, but I realize that this might not be the answer you're looking for. 🙈

Maybe we could add an option to opt-out of using that class?

ruudk commented 6 months ago

Upgrading to 7.0 solves it for me.

derrabus commented 6 months ago

Thanks for the feedback, but let's leave the issue open. We should try to find a solution for Symfony 6.4 projects.

stanislav-oop commented 4 months ago

Is this fixed yet?

derrabus commented 4 months ago

No.

Natizyskunk commented 3 months ago

Still no solution ? I would prefer not to mix package versions in my composer.json sinc all my project dependencies are in 6.4.

greg0ire commented 3 months ago

And I would prefer if you folks explored the issue and proposed solutions instead of demanding updates and filling my inbox.

stanislav-oop commented 3 months ago

Due to some internal company policies we can not update to anything but latest symfony LTS version which is 6.4. Nothing of proposed solutions works for us so we would like to have this depreciation silenced. Its not a demand though.

derrabus commented 3 months ago

Folks.

I hope that answers all open questions. :v: