Skip to content
Advertisement

Could not find any fixture services to load

i know this question has been asked already multiple times:

  1. Symfony 3.4 and Fixtures Bundle issue with bundle version 3.0
  2. Symfony 3.4.0 Could not find any fixture services to load
  3. Symfony Doctrine can’t find fixtures to load
  4. Could not find any fixture services to load – Symfony 3.2

None of the above actually helped me out. That said, this is my configuration:

Composer.json

JavaScript

I’m using a company-developed Bundle which worked fine until the last version of the above (last tested and working configuration had PHP 5.6, Doctrine bundle ^1.6,doctrine orm ^2.5, fixture bundle ^3.0).

This bundle has some Fixture inside VendorName/BundleName/DataFixtures/ORM, all the fixtures have the following declaration:

JavaScript

Inside this bundle there’s a services.yml file, loaded by this:

JavaScript

VendorName/BundleName/Resources/config/Services.yml i tried different configurations:

JavaScript

I tried expliciting searching inside DataFixtures:

JavaScript

And even manually configure the service:

JavaScript

But unfortunately it keeps giving the error. Any idea of what i’m doing wrong? Long time ago it was possible to manually specify to the fixture command which bundle to look in, but now it’s not possible anymore

UPDATE 1: Sorry guys forgot to point the error message: “Could not find any fixture services to load”

Advertisement

Answer

For everyone landing here i solved my problem, what i can tell you is:

  1. Double check you enabled the Bundle in the AppKernel
  2. Clear your symfony cache using the command php bin/console cache:clear –env=dev (or env=prod)
  3. Manually delete cache folder
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement