3
votes

I am trying to configure the bundle from : https://symfony.com/doc/master/bundles/DoctrineFixturesBundle/index.html

and when I try to run the command :

$ php bin/console doctrine:fixtures:load

getting error: In LoadDataFixturesDoctrineCommand.php line 95: Could not find any fixture services to load.

1

1 Answers

2
votes

You need to update (app/config/services.yml)

services:
        resource: '../../src/DataFixtures/*'

https://symfony.com/doc/master/bundles/DoctrineFixturesBundle/index.html

Other problem is here in to the above tutorial

// src/DataFixtures/AppFixtures.php
namespace App\DataFixtures;

name space should be :

namespace DataFixtures;