doctrine / DoctrineFixturesBundle

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

Load fixtures contained in another bundle #243

Closed JayPe69 closed 6 years ago

JayPe69 commented 6 years ago

Hello,

I try to migrate to symfony 4. Everything works but not the doctrine:fixtures:load.

Actually, it works, but my fixtures that are present in specific (vendor) bundles are not taken into account anymore.

Is it an issue or a new way to work with fixtures ?

JayPe69 commented 6 years ago

Ok I found it, we have to specify in the services.yml our fixtures like this for example :

services:
    Company\Bundle\DataFixtures\ORM\:
        resource: '../../vendor/company/bundle/DataFixtures/ORM/*'