Symfony Doctrine can't find fixtures to load

前端 未结 2 1287
感动是毒
感动是毒 2021-01-25 12:10

I starting with Symfony (3.4) and I have problem with load fixture.
When I execute php bin/console doctrine:fixtures:load then I get message:

In Load         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-25 12:30

    Depending on what version of fixtures you use you should extend/implement different classes. If the version is >= 3.0 then

    extend Fixture (use Doctrine\Bundle\FixturesBundle\Fixture;)
    

    If < 3.0

    implements FixtureInterface, ContainerAwareInterface
    

提交回复
热议问题